airlink generation fix, thanks st9_
[openwrt.git] / package / busybox / files / telnet
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 start() {
5 if [ \! -f /etc/passwd ] || \
6 awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \
7 [ \! -x /usr/sbin/dropbear ]
8 then \
9 telnetd -l /bin/login
10 fi
11 }
12
13 stop() {
14 killall telnetd
15 }
This page took 0.04733 seconds and 5 git commands to generate.