File: libphidgets0.postrm

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 (37 lines) | stat: -rw-r--r-- 705 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
#!/bin/sh -e

test $DEBIAN_SCRIPT_DEBUG && set -v -x

CONFFILE=/etc/default/libphidgets0

case $1 in
  purge)
    # we mimic dpkg as closely as possible, so we remove configuration
    # files with dpkg backup extensions too:
    for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist .ucf-new .ucf-old .ucf-dist; do
        rm -f $CONFFILE$ext
    done

    # remove the configuration file itself
    rm -f $CONFFILE 

    # and finally clear it out from the ucf database
    if which ucf >/dev/null; then
        ucf --purge $CONFFILE
    fi
  ;;

  failed-upgrade|remove|upgrade)
  ;;

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

#DEBHELPER#

exit 0