blob: 7f7a5c1f8e4c083b5d84f8031e067944c24fea15 (
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
|
#!/bin/sh
# remove samba
nawk '/^netbios-[ns]*[ ]/ {next}
{print} ' \
${PKG_INSTALL_ROOT}/etc/inet/services > /tmp/services.$$ && \
mv -f /tmp/services.$$ ${PKG_INSTALL_ROOT}/etc/inet/services &&
\
chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/services && \
echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/services"
nawk '/samba.*mbd[ ]/ { next }
{print} ' \
${PKG_INSTALL_ROOT}/etc/inet/inetd.conf > /tmp/inetd.conf.$$ &&
\
mv -f /tmp/inetd.conf.$$ ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf
&& \
chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf && \
echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf"
echo "Removed samba service from ${PKG_INSTALL_ROOT:-/}"
inetpid=`/bin/ps -ef | awk '/ \/usr\/sbin\/inetd / { print $2 } '`
if [ "X$inetpid" = "X" ]; then
echo "inetd not running"
else
echo "Restarting inetd($inetpid)"
kill -HUP $inetpid
fi
|