aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/bin
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-11 13:25:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-11 13:25:31 +0000
commitc6af60f433ffe9c68626b2d65584115071349f15 (patch)
tree86e60df896792ed59a76e7b2dc830b9ffaa8d9bf /package/base-files/files/bin
parentaacccbc3c142d01ff2bf3f73ba66b7846b131444 (diff)
downloadupstream-c6af60f433ffe9c68626b2d65584115071349f15.tar.gz
upstream-c6af60f433ffe9c68626b2d65584115071349f15.tar.bz2
upstream-c6af60f433ffe9c68626b2d65584115071349f15.zip
[package] base-files: now that the initial password is completely empty (and not primed with "!") adjust login.sh for it to make telnetd available again
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28943 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/bin')
-rwxr-xr-xpackage/base-files/files/bin/login.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/bin/login.sh b/package/base-files/files/bin/login.sh
index a64c84e1e2..b46769a012 100755
--- a/package/base-files/files/bin/login.sh
+++ b/package/base-files/files/bin/login.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
-if grep -qs '^root:[^!]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then
+if grep -qs '^root:[^!:]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then
echo "Login failed."
exit 0
else