projects
/
openwrt-10.03
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c61fe73ad5c43abe7294d1d56c5cfe169295a06d
[openwrt-10.03/.git]
/
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
}