]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/nfs-common.postrm
Imported Debian patch 1.2.0-4
[nfs-utils.git] / debian / nfs-common.postrm
1 #!/bin/sh
2
3 set -e
4
5 #DEBHELPER#
6
7 case "$1" in
8     purge)
9         update-rc.d nfs-common remove >/dev/null
10
11         for FILE in /etc/default/nfs-common /etc/idmapd.conf; do
12             # Taken from the ucf example postrm
13             for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
14                 rm -f $FILE$ext
15             done
16             rm -f $FILE
17             if [ -x /usr/bin/ucf ]; then
18                 ucf --purge $FILE
19             fi
20         done
21
22         rm -f /var/lib/nfs/state    \
23               /var/lib/nfs/sm/*     \
24               /var/lib/nfs/sm.bak/*
25             
26         dpkg-statoverride --remove /sbin/mount.nfs || true
27         ;;
28 esac