X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/639cf75264354795e3869e945b7aa51aaa658bb2..b668d3deb84d791f5ca5ecd5544658457c44b7b0:/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 6682b022b..04b3fe250 100755 --- a/package/base-files/files/bin/login.sh +++ b/package/base-files/files/bin/login.sh @@ -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