projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: update linux 3.2 to 3.2.12
[openwrt.git]
/
package
/
base-files
/
files
/
bin
/
login.sh
diff --git
a/package/base-files/files/bin/login.sh
b/package/base-files/files/bin/login.sh
index
b46769a
..
04b3fe2
100755
(executable)
--- a/
package/base-files/files/bin/login.sh
+++ b/
package/base-files/files/bin/login.sh
@@
-1,7
+1,10
@@
#!/bin/sh
# Copyright (C) 2006-2011 OpenWrt.org
#!/bin/sh
# 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
echo "Login failed."
exit 0
else
This page took
0.029966 seconds
and
4
git commands to generate.