Debian Codegraph @

debian/postinst

raw
1 #!/bin/sh
2 # postinst script for #PACKAGE#
3 # This scripts from isight-firmware-tools_1.0.2-0ubuntu0~ppa1
4 # package.
5 # see: dh_installdeb(1)
6
7 set -e
8
9 EXTRACT="/usr/bin/ift-extract"
10 . /usr/share/debconf/confmodule
11
12 case "$1" in
13 configure)
14 db_get isight-firmware-tools/extract || true
15 if [ "$RET" = "true" ] ; then
16 db_get isight-firmware-tools/driver-location
17 if [ -f "$RET" ] ; then
18 $EXTRACT --apple-driver "$RET" > /dev/null 2>&1
19 if [ $? -eq 0 ] ; then
20 db_input high isight-firmware-tools/extract_success || true
21 else
22 db_input high isight-firmware-tools/extract_fail || true
23 fi
24 db_go || ture
25 fi
26 fi
27 ;;
28
29 abort-upgrade|abort-remove|abort-deconfigure)
30 ;;
31
32 *)
33 echo "postinst called with unknown argument \`$1'" >&2
34 exit 1
35 ;;
36 esac
37
38 # dh_installdeb will replace this with shell code automatically
39 # generated by other debhelper scripts.
40
41 #DEBHELPER#
42
43 exit 0
44
45