X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/blobdiff_plain/f4b9017cca7feaf514fb2fd71c8de9fdbf87996c..8f62cc9e2d0024d7bc47e5b2cf71c6b6d58ad4aa:/debian/postrm

diff --git a/debian/postrm b/debian/postrm
index eb8e315..c200457 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -8,6 +8,7 @@ set -e
 case "$1" in
     purge)
         rm -rf /lib/firmware/kinect
+        rmdir --ignore-fail-on-non-empty --parents /lib/firmware/ || true
 
         if [ -e /usr/share/debconf/confmodule ];
         then