Rev 2 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 21 | ||
---|---|---|---|
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | # postrm script for pmk |
2 | # postrm script for pmk |
3 | # |
3 | # |
4 | # see: dh_installdeb(1) |
4 | # see: dh_installdeb(1) |
5 | 5 | ||
6 | conffile=/etc/pmk/pmk.conf |
6 | conffile=/etc/pmk/pmk.conf |
7 | 7 | ||
8 | set -e |
8 | set -e |
9 | 9 | ||
10 | case "$1" in |
10 | case "$1" in |
11 | purge) |
11 | purge) |
12 | rm -f $conffile $conffile~ $conffile.bak \#$conffile\# \ |
12 | rm -f $conffile $conffile~ $conffile.bak \#$conffile\# \ |
13 | $conffile.ucf-new $conffile.ucf-old $conffile.ucf-dist |
13 | $conffile.ucf-new $conffile.ucf-old $conffile.ucf-dist |
14 | if which ucf >/dev/null; then |
14 | if which ucf >/dev/null; then |
15 | ucf --purge /etc/pmk.conf |
15 | ucf --purge /etc/pmk.conf |
16 | fi |
16 | fi |
17 | if which ucfr >/dev/null; then |
17 | if which ucfr >/dev/null; then |
18 | ucfr --purge pmk /etc/pmk.conf |
18 | ucfr --purge pmk /etc/pmk.conf |
19 | fi |
19 | fi |
20 | ;; |
20 | ;; |
21 | 21 | ||
22 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
22 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
23 | ;; |
23 | ;; |
24 | 24 | ||
25 | *) |
25 | *) |
26 | echo "postrm called with unknown argument \`$1'" >&2 |
26 | echo "postrm called with unknown argument \`$1'" >&2 |
27 | exit 1 |
27 | exit 1 |
28 | ;; |
28 | ;; |
29 | esac |
29 | esac |
30 | 30 | ||
31 | # dh_installdeb will replace this with shell code automatically |
31 | # dh_installdeb will replace this with shell code automatically |
32 | # generated by other debhelper scripts. |
32 | # generated by other debhelper scripts. |
33 | 33 | ||
34 | #DEBHELPER# |
34 | #DEBHELPER# |
35 | 35 | ||
36 | exit 0 |
36 | exit 0 |
37 | 37 |