7 [ -r /etc
/default
/telnet ] && .
/etc
/default
/telnet
10 printf "Starting telnetd: "
11 start-stop-daemon
-S -q -m -b -p /var
/run
/telnetd.pid \
12 -x /usr
/sbin
/telnetd
-- $TELNETD_ARGS
13 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
17 printf "Stopping telnetd: "
18 start-stop-daemon
-K -q -p /var
/run
/telnetd.pid \
20 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
35 echo "Usage: $0 {start|stop|restart}"