debian/kinect-audio-setup.lintian-overrides: move from debian/lintian
[kinect-audio-setup.git] / debian / postinst
1 #!/bin/sh
2 # postinst script for kinect-audio-setup
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7         
8 . /usr/share/debconf/confmodule 
9
10 case "$1" in
11     configure)
12         db_get kinect-audio-setup/accept_eula
13         if [ "$RET" = "false" ]; then
14             db_input high kinect-audio-setup/eula_not_accepted || true
15             db_go
16         else
17           kinect_fetch_fw /lib/firmware/kinect /usr/sbin/kinect_upload_fw 1>&2 || true
18           udevadm control --reload-rules || true
19         fi
20     ;;
21
22     abort-upgrade|abort-remove|abort-deconfigure)
23     ;;
24
25     *)
26         echo "postinst called with unknown argument \`$1'" >&2
27         exit 1
28     ;;
29 esac
30
31 # dh_installdeb will replace this with shell code automatically
32 # generated by other debhelper scripts.
33
34 #DEBHELPER#
35
36 exit 0