Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43006
3c298f89-4303-0410-b956-
a3cf2f4a3e73
#!/bin/sh
# Copyright (C) 2006-2011 OpenWrt.org
#!/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."
[ -z "$FAILSAFE" ]
then
echo "Login failed."