3 if [ "$1" = purge ]; then
4 update-rc.d samba remove >/dev/null
6 # Remove WINS.DAT, BROWSE.DAT and lock information file
9 # Remove any files in the old and obsolete /var/lock/samba directory
10 rm -Rf /var/lock/samba/
12 # Remove files left in /etc/samba/
13 rm -Rf /etc/samba/debian_config
14 rm -Rf /etc/samba/MACHINE.SID
17 rm -f /var/log/[ns]mb*
19 # Remove NetBIOS entries from /etc/inetd.conf
20 update-inetd --remove netbios-ssn
21 update-inetd --remove netbios-ns
23 # Not purging, do not remove NetBIOS entries from /etc/inetd.conf
24 update-inetd --disable netbios-ssn
25 update-inetd --disable netbios-ns