kernel: update linux 3.2 to 3.2.12
[openwrt.git] / package / base-files / files / bin / login.sh
index a64c84e..04b3fe2 100755 (executable)
@@ -1,7 +1,10 @@
 #!/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:[!x]\?:' /etc/shadow || \
+     ! grep -qs '^root:[!x]\?:' /etc/passwd ) && \
+   [ -z "$FAILSAFE" ]
+then
        echo "Login failed."
        exit 0
 else
This page took 0.02276 seconds and 4 git commands to generate.