Merge branch 'upstream'
[nfs-utils.git] / debian / nfs-kernel-server.postrm
1 #!/bin/sh
2
3 #DEBHELPER#
4
5 case "$1" in
6     purge)
7         update-rc.d nfs-kernel-server remove >/dev/null
8
9         for FILE in /etc/default/nfs-kernel-server /etc/exports; do
10             # Taken from the ucf example postrm
11             for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
12                 rm -f $FILE$ext
13             done
14             rm -f $FILE
15             if [ -x /usr/bin/ucf ]; then
16                 ucf --purge $FILE
17             fi
18         done
19
20         rm -f /var/lib/nfs/etab  \
21               /var/lib/nfs/rmtab \
22               /var/lib/nfs/xtab
23         ;;
24 esac
25