From: Mike Baker Date: Wed, 29 Mar 2006 08:49:40 +0000 (+0000) Subject: fix failsafe for jffs2 X-Git-Tag: whiterussian_rc6~295 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=629f4dbf380570372802487d4f0d2f71d0b15dcb;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix failsafe for jffs2 SVN-Revision: 3538 --- diff --git a/openwrt/package/base-files/default/bin/login b/openwrt/package/base-files/default/bin/login index 9d90735c35..8f9281726d 100755 --- a/openwrt/package/base-files/default/bin/login +++ b/openwrt/package/base-files/default/bin/login @@ -1,9 +1,10 @@ #!/bin/sh -grep '^root:[^!]' /etc/passwd >&- 2>&- && +grep '^root:[^!]' /etc/passwd >&- 2>&- +[ "$?" = "0" -a -z "$FAILSAFE" ] && { echo "Login failed." exit 0 - } || { +} || { cat << EOF === IMPORTANT ============================ Use 'passwd' to set your login password