debian: Initial debian packaging import
[kinect-audio-setup.git] / debian / postrm
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..422cdde
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+# postrm script for kinect-audio-setup
+#
+# see: dh_installdeb(1)
+
+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/
+    ;;
+
+    remove|upgrade|failed-upgrade|abort-upgrade|abort-install)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0