3 # $Id: samba.postrm,v 1.3 2003/06/01 07:12:51 peloy Exp $
6 if [ "$1" = purge ]; then
8 # Remove Samba's state files, both volatile and non-volatile
9 rm -Rf /var/run/samba/ /var/cache/samba/ /var/lib/samba
12 rm -Rf /var/log/samba/
14 # Remove init.d configuration file
15 echo Removing configuration file /etc/default/samba... >&2
16 rm -f /etc/default/samba
18 # Remove NetBIOS entries from /etc/inetd.conf
19 update-inetd --remove netbios-ssn
21 update-rc.d samba remove >/dev/null
23 # Not purging, do not remove NetBIOS entries from /etc/inetd.conf
24 update-inetd --disable netbios-ssn