File: libphidgets0.preinst

package info (click to toggle)
libphidgets 0.3.8-1.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,996 kB
  • ctags: 257
  • sloc: sh: 8,803; ansic: 1,753; makefile: 276
file content (26 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash -e

test $DEBIAN_SCRIPT_DEBUG && set -v -x

case $1 in
  install|upgrade)

    if [[ -n $2 ]] && dpkg --compare-versions $2 lt 0.3.1-1; then
      PREVCONF=/etc/hotplug/usb/phidgets
      mv $PREVCONF $PREVCONF.dpkg-old
    fi

  ;;

  abort-upgrade|abort-remove|abort-deconfigure)
  ;;

  *)
    echo "preinst called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac

#DEBHELPER#

exit 0