File: postrm

package info (click to toggle)
bind 1%3A8.1.2-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,072 kB
  • ctags: 7,956
  • sloc: ansic: 54,480; sh: 6,937; makefile: 2,900; yacc: 1,223; perl: 315; lex: 221; awk: 45; sed: 15
file content (38 lines) | stat: -rw-r--r-- 627 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 -e
#
# Debian package postrm
# Version 1.2
#
# Robert Leslie <rob@mars.org>

case "$1" in
    remove)
	test ! -f /usr/bin/nslookup.sh || ln -s nslookup.sh /usr/bin/nslookup

	echo
	echo "You may want to verify the contents of /etc/resolv.conf."
	echo
    ;;

    upgrade)
    ;;

    purge)
	rm -f /var/named/boot.{options,options.old,zones}
	rm -f /var/named/named.boot
	rm -f /etc/named.boot
	rm -f /etc/named.conf

	update-rc.d bind remove >/dev/null
    ;;

    failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

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

exit 0