mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
73106d9bae
(This used to be commit 8ec972ba6c
)
18 lines
365 B
Bash
Executable File
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
|