projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace common -I and -L search flags with TARGET_CPPFLAGS and TARGET_LDFLAGS
[openwrt.git]
/
package
/
busybox
/
files
/
telnet
diff --git
a/package/busybox/files/telnet
b/package/busybox/files/telnet
index
c994c60
..
c61fe73
100755
(executable)
--- a/
package/busybox/files/telnet
+++ b/
package/busybox/files/telnet
@@
-2,7
+2,12
@@
# Copyright (C) 2006 OpenWrt.org
start() {
# Copyright (C) 2006 OpenWrt.org
start() {
- if awk -F: '/^root:/ && $2 !~ /\!/ {exit 1}' /etc/passwd 2>/dev/null && [ -x /usr/sbin/dropbear ]; then telnetd -l /bin/login; fi
+ if [ \! -f /etc/passwd ] || \
+ awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \
+ [ \! -x /usr/sbin/dropbear ]
+ then \
+ telnetd -l /bin/login
+ fi
}
stop() {
}
stop() {
This page took
0.024217 seconds
and
4
git commands to generate.