File: postinst

package info (click to toggle)
hwtools 0.8-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,388 kB
  • ctags: 1,143
  • sloc: ansic: 6,031; asm: 2,223; makefile: 277; sh: 122; csh: 42
file content (24 lines) | stat: -rw-r--r-- 423 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
#!/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 [ -n "$2" ]; then # this is an upgrade
    if dpkg --compare-versions "$2" lt 0.6; then
      db_get hwtools/no-scsi || true
    fi
  fi

fi

#DEBHELPER#

exit 0