#!/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
