File: postinst

package info (click to toggle)
hwtools 0.8-0.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,316 kB
  • ctags: 1,141
  • sloc: ansic: 6,028; asm: 2,223; makefile: 278; sh: 109; csh: 42
file content (26 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
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/sh -e

if [ "$1" = "configure" ]; then

  update-rc.d hwtools start 60 S . >/dev/null

  if [ -f /etc/rc.boot/hwtools -a -f /etc/init.d/hwtools ]; then
    rm /etc/rc.boot/hwtools
  fi

  # Source debconf library.
  . /usr/share/debconf/confmodule

  if [ -z "$2" ]; then # there's no $2 version, therefore it's not an upgrade
    db_get hwtools/info || true
  else
    if dpkg --compare-versions "$2" lt 0.6; then
      db_get hwtools/no-scsi || true
    fi
  fi

fi

#DEBHELPER#

exit 0