comparison debian/postrm @ 4:fe6bca95afa7

Makefile.in contains updated files required
author Matt Johnston <matt@ucc.asn.au>
date Tue, 01 Jun 2004 02:46:09 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 4:fe6bca95afa7
1 #! /bin/sh
2 # postrm script for #PACKAGE#
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <postrm> `remove'
10 # * <postrm> `purge'
11 # * <old-postrm> `upgrade' <new-version>
12 # * <new-postrm> `failed-upgrade' <old-version>
13 # * <new-postrm> `abort-install'
14 # * <new-postrm> `abort-install' <old-version>
15 # * <new-postrm> `abort-upgrade' <old-version>
16 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20
21 case "$1" in
22 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
23 if [ "$1" = "purge" ]
24 then
25 if [ -e /etc/dropbear ]; then
26 rm -f /etc/dropbear/dropbear_rsa_host_key
27 rm -f /etc/dropbear/dropbear_dss_host_key
28 rmdir --ignore-fail-on-non-empty /etc/dropbear
29 fi
30 update-rc.d dropbear remove >/dev/null
31 fi
32 ;;
33
34 *)
35 echo "postrm called with unknown argument \`$1'" >&2
36 exit 1
37
38 esac
39
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
42
43 #DEBHELPER#
44
45 exit 0