3 # add SWAT deamon to inetd.conf
5 cp /etc/inetd.conf /etc/inetd.O
6 sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf
7 echo '#SWAT services' >> /etc/inetd.conf
8 echo swat stream tcp nowait root /usr/samba/bin/swat swat >> /etc/inetd.conf
11 # add SWAT service port to /etc/services
13 cp /etc/services /etc/services.O
14 sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services
15 echo '#SWAT services' >> /etc/services
16 echo 'swat 901/tcp # SWAT' >> /etc/services
19 # restart inetd to start SWAT
21 /etc/killall -HUP inetd