UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / platforms / debian / examples / preinst.ex
blobb20911376d798fba288ebc643f0b44b2075fdb25
1 #! /bin/sh
2 # preinst script for apcupsd
4 # see: dh_installdeb(1)
6 set -e
8 # summary of how this script can be called:
9 # * <new-preinst> `install'
10 # * <new-preinst> `install' <old-version>
11 # * <new-preinst> `upgrade' <old-version>
12 # * <old-preinst> `abort-upgrade' <new-version>
14 # For details see /usr/share/doc/packaging-manual/
16 case "$1" in
17 install|upgrade)
18 # if [ "$1" = "upgrade" ]
19 # then
20 # start-stop-daemon --stop --quiet --oknodo \
21 # --pidfile /var/run/apcupsd.pid \
22 # --exec /usr/sbin/apcupsd 2>/dev/null || true
23 # fi
26 abort-upgrade)
30 echo "preinst called with unknown argument \`$1'" >&2
31 exit 0
33 esac
35 # dh_installdeb will replace this with shell code automatically
36 # generated by other debhelper scripts.
38 #DEBHELPER#
40 exit 0