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

18 lines
365 B
Bash
Raw Normal View History

#! /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