projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add new ar7 dsl driver (thanks, matteo), mark ar7-2.4 as broken and enable ar7-2.6
[oweals/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
}