Last change
on this file since 1036 was 414, checked in by Herwig Bauernfeind, 16 years ago |
Samba 3.5.0: Initial import
|
File size:
583 bytes
|
Line | |
---|
1 | #! /bin/sh
|
---|
2 | #
|
---|
3 | # remove SWAT deamon from inetd.conf
|
---|
4 | #
|
---|
5 | cp /etc/inetd.conf /etc/inetd.conf.O
|
---|
6 |
|
---|
7 | if [ $? -ne 0 ]; then exit 1; fi
|
---|
8 | if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi
|
---|
9 |
|
---|
10 | sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.conf.O > /etc/inetd.conf
|
---|
11 |
|
---|
12 | #
|
---|
13 | # remove SWAT service port from /etc/services
|
---|
14 | #
|
---|
15 | cp /etc/services /etc/services.O
|
---|
16 |
|
---|
17 | if [ $? -ne 0 ]; then exit 1; fi
|
---|
18 | if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi
|
---|
19 |
|
---|
20 | sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services
|
---|
21 |
|
---|
22 | #
|
---|
23 | # restart inetd to reread config files
|
---|
24 | #
|
---|
25 | /etc/killall -HUP inetd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.