mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
18 lines
365 B
Bash
18 lines
365 B
Bash
|
#! /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
|