This commit was manufactured by cvs2svn to create tag
[Samba.git] / packaging / SGI / inetd.sh
blob8c4c6cb8d8b54caf66e4f7b98342aa1fdc3283b9
1 #! /bin/sh
3 # kill any running samba processes
5 /etc/killall smbd nmbd
6 chkconfig samba off
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