From: Felix Fietkau Date: Mon, 20 Oct 2014 15:07:19 +0000 (+0000) Subject: base-files: fix telnet login on musl X-Git-Tag: reboot~5569 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=99a651fd508e189d40262230fa34069fd9ff2bb5;p=openwrt%2Fopenwrt.git base-files: fix telnet login on musl Signed-off-by: Felix Fietkau SVN-Revision: 43006 --- 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."