debian: use debconf to ask if the user accepts the MSK4W EULA
[kinect-audio-setup.git] / debian / postrm
1 #!/bin/sh
2 # postrm script for kinect-audio-setup
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 case "$1" in
9     purge)
10         rm -rf /lib/firmware/kinect
11         # Because piuparts complains about /lib/firmware still there
12         rmdir --ignore-fail-on-non-empty -p /lib/firmware/
13
14         if [ -e /usr/share/debconf/confmodule ];
15         then
16             . /usr/share/debconf/confmodule
17             db_purge
18         fi
19     ;;
20
21     remove|upgrade|failed-upgrade|abort-upgrade|abort-install)
22     ;;
23
24     *)
25         echo "postrm called with unknown argument \`$1'" >&2
26         exit 1
27     ;;
28 esac
29
30 # dh_installdeb will replace this with shell code automatically
31 # generated by other debhelper scripts.
32
33 #DEBHELPER#
34
35 exit 0