3 # kill any running samba processes
9 # add SAMBA deamons to inetd.conf
11 cp /etc/inetd.conf /etc/inetd.O
12 sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.O > /etc/inetd.conf
13 echo '#SAMBA services' >> /etc/inetd.conf
14 echo netbios-ssn stream tcp nowait root /usr/samba/bin/smbd smbd >> /etc/inetd.conf
15 echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc/inetd.conf
18 # add SAMBA service ports to /etc/services
20 cp /etc/services /etc/services.O
21 sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/services.O > /etc/services
22 echo '#SAMBA services' >> /etc/services
23 echo 'netbios-ns 137/udp # SAMBA' >> /etc/services
24 echo 'netbios-ssn 139/tcp # SAMBA' >> /etc/services
27 # restart inetd to start SAMBA
29 /etc/killall -HUP inetd