1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/packaging/SGI/removeswat.sh
Herb Lewis 73106d9bae added file from 2.0 branch
(This used to be commit 8ec972ba6c)
1998-11-25 18:11:42 +00:00

18 lines
365 B
Bash
Executable File

#! /bin/sh
#
# remove SWAT deamon from inetd.conf
#
cp /etc/inetd.conf /etc/inetd.O
sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf
#
# remove SWAT service port from /etc/services
#
cp /etc/services /etc/services.O
sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services
#
# restart inetd to reread config files
#
/etc/killall -HUP inetd