s3:winbindd/autorid add ignore builtin parameter
[Samba/gebeck_regimport.git] / packaging / SGI / removeswat.sh
blob7a4745345be8d5837ef37609aee9090c1ff579fb
1 #! /bin/sh
3 # remove SWAT deamon from inetd.conf
5 cp /etc/inetd.conf /etc/inetd.conf.O
7 if [ $? -ne 0 ]; then exit 1; fi
8 if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi
10 sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.conf.O > /etc/inetd.conf
13 # remove SWAT service port from /etc/services
15 cp /etc/services /etc/services.O
17 if [ $? -ne 0 ]; then exit 1; fi
18 if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi
20 sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services
23 # restart inetd to reread config files
25 /etc/killall -HUP inetd