X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fbusybox%2Ffiles%2Ftelnet;h=c61fe73ad5c43abe7294d1d56c5cfe169295a06d;hb=bc661198a149fa0c4ad239fa7743143afd93e082;hp=c994c6052fa983929ee344a2ac831c5fd6f07718;hpb=6f447d09dfa4c4ee2321f327c5b62e79db3f9173;p=openwrt-10.03%2F.git diff --git a/package/busybox/files/telnet b/package/busybox/files/telnet index c994c6052..c61fe73ad 100755 --- a/package/busybox/files/telnet +++ b/package/busybox/files/telnet @@ -2,7 +2,12 @@ # 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() {