Update xfsprogs to 3.1.4 to 3.1.7
[openwrt.git] / package / base-files / files / bin / login.sh
index 6682b022bad6ff314c36c5b0c0af916227c7bc2b..04b3fe25021b6c3e60c2b298119761e5113c3480 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Copyright (C) 2006-2011 OpenWrt.org
 
-if ( ! grep -qs '^root::' /etc/shadow || \
+if ( ! grep -qs '^root:[!x]\?:' /etc/shadow || \
      ! grep -qs '^root:[!x]\?:' /etc/passwd ) && \
    [ -z "$FAILSAFE" ]
 then