[package] base-files: now that the initial password is completely empty (and not...
[openwrt.git] / package / base-files / files / bin / login.sh
index a64c84e..b46769a 100755 (executable)
@@ -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