blob: 6ffada99d8ea6e8f6fa53124b872aa4cfc363ed6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
if [ -f /etc/inetd.conf ]; then\
cp /etc/inetd.conf inetd.conf.backup;\
fi
apk_add $@
echo "telnet stream tcp nowait root /usr/sbin/in.telnetd telnetd" > /etc/inetd.conf
/etc/init.d/inetd start
nmap localhost | grep telnet
/etc/init.d/inetd stop
if [ -f inetd.conf.backup ]; then\
mv inetd.conf.backup /etc/inetd.conf;\
fi
apk_del $@
|