debian/changelog: release package version 0.4-1
[kinect-audio-setup.git] / debian / postrm
index 422cdde..eb8e315 100644 (file)
@@ -8,8 +8,12 @@ set -e
 case "$1" in
     purge)
         rm -rf /lib/firmware/kinect
-        # Because piuparts complains about /lib/firmware still there
-        rmdir --ignore-fail-on-non-empty -p /lib/firmware/
+
+        if [ -e /usr/share/debconf/confmodule ];
+        then
+            . /usr/share/debconf/confmodule
+            db_purge
+        fi
     ;;
 
     remove|upgrade|failed-upgrade|abort-upgrade|abort-install)