blob: a7260bc80abc7774e5132ff1e205fb0a14a9f764 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
scriptname="$0"
step="$1"
keywords="$2"
pkglist="$3"
# Source in the standard functions library, ccsSetup.sh
. ccsSetup.sh
ccs_return_value=0
SERVICE="swat 598/tcp Samba Web Administration Tool"
INETD="swat stream tcp nowait root /usr/lib/samba/sbin/swat swat"
PostConfigure()
{
grep -q "^swat[ ]" /etc/services ||
echo $SERVICE >> /etc/services
grep -q "^swat[ ]" /etc/inetd.conf ||
echo $INETD >> /etc/inetd.conf
kill -HUP `cat /etc/inetd.pid`
}
case "$step" in
POST_CONFIGURE) PostConfigure ;;
esac
exit $ccs_return_value
|