micropython: replace local fix with upstream one
[buildroot-gz.git] / package / busybox / S50telnet
blob47e2b63e19ded1099fac2b2c04e1840406384cf1
1 #!/bin/sh
3 # Start telnet....
6 start() {
7 printf "Starting telnetd: "
8 start-stop-daemon -S -q -m -b -p /var/run/telnetd.pid \
9 -x /usr/sbin/telnetd -- -F
10 [ $? = 0 ] && echo "OK" || echo "FAIL"
13 stop() {
14 printf "Stopping telnetd: "
15 start-stop-daemon -K -q -p /var/run/telnetd.pid \
16 -x /usr/sbin/telnetd
17 [ $? = 0 ] && echo "OK" || echo "FAIL"
20 case "$1" in
21 start)
22 start
24 stop)
25 stop
27 restart|reload)
28 stop
29 start
32 echo "Usage: $0 {start|stop|restart}"
33 exit 1
34 esac
36 exit $?