File: prerm

package info (click to toggle)
nut 0.45.5-rel-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,984 kB
  • ctags: 2,146
  • sloc: ansic: 22,216; sh: 1,138; makefile: 405
file content (37 lines) | stat: -rw-r--r-- 494 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
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

# the DEBHELPER token is purposely not used
# because we don't want the daemon to be
# stopped during an upgrade

case "$1" in

  remove)
    if [ -L /usr/doc/nut ] ; then
        rm -f /usr/doc/nut
    fi
    /etc/init.d/nut stop
    ;;

  upgrade)
    if [ -L /usr/doc/nut ] ; then
        rm -f /usr/doc/nut
    fi
    ;;

  failed-upgrade)
    # do nothing
    ;;

  deconfigure)
    # do nothing
    ;;

  *)
    echo "$0: incorrect arguments: $*" >&2
    exit 1
    ;;

esac