projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
upgrade bridge-utils to v1.4
[oweals/openwrt.git]
/
package
/
busybox
/
files
/
telnet
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006 OpenWrt.org
3
START=50
4
5
start() {
6
if [ \! -f /etc/passwd ] || \
7
awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \
8
( [ \! -x /usr/sbin/dropbear ] && [ \! -x /usr/sbin/sshd ] )
9
then \
10
telnetd -l /bin/login
11
fi
12
}
13
14
stop() {
15
killall telnetd
16
}