File: postrm

package info (click to toggle)
wdm 1.0-7
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,368 kB
  • ctags: 527
  • sloc: ansic: 1,805; sh: 647; makefile: 454; perl: 31
file content (38 lines) | stat: -rw-r--r-- 693 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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# Debian wdm package post-removal script
# Copyright 1998 Marcelo Magallon. Licensed under the GNU GPL.
# Acknowlegements to Branden Robinson, Stephen Early, Mark Eichin and Manoj Srivastava.

set -e

log_file=/var/log/wdm-errors
pid_file=/var/run/wdm.pid

case "$1" in
  remove)
    for file_to_remove in $log_file $pid_file ; do
      rm -f $file_to_remove
    done
  ;;
  purge)
    update-rc.d wdm remove >/dev/null
  ;;
  upgrade)
  ;;
  failed-upgrade)
    # Houston, we have a problem... an unkwon problem!
    exit 1
  ;;
  abort-install)
  ;;
  abort-upgrade)
  ;;
  disappear)
  ;;
  *)
    echo "postrm called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac

exit 0