diff options
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/bin/login.sh | 4 |
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 04b3fe2502..25627b66b2 100755 --- a/package/base-files/files/bin/login.sh +++ b/package/base-files/files/bin/login.sh @@ -1,8 +1,8 @@ #!/bin/sh # Copyright (C) 2006-2011 OpenWrt.org -if ( ! grep -qs '^root:[!x]\?:' /etc/shadow || \ - ! grep -qs '^root:[!x]\?:' /etc/passwd ) && \ +if ( ! grep -qsE '^root:[!x]?:' /etc/shadow || \ + ! grep -qsE '^root:[!x]?:' /etc/passwd ) && \ [ -z "$FAILSAFE" ] then echo "Login failed." |