X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/7619fe0848dc5f31d5c4c4cadd2ec067bd5c55d1..91ef5b68e237e3d9e4a90f43427e55ab35928aa3:/package/base-files/default/bin/login diff --git a/package/base-files/default/bin/login b/package/base-files/default/bin/login index bb065e54a..ff5d3660e 100755 --- a/package/base-files/default/bin/login +++ b/package/base-files/default/bin/login @@ -1,20 +1,18 @@ #!/bin/sh -. /etc/sysconf 2>&- +# Copyright (C) 2006 OpenWrt.org -[ "$FAILSAFE" != "true" ] && -[ "$BR2_SYSCONF_TELNET_FAILSAFE_ONLY" = "y" ] && +grep '^root:[^!]' /etc/passwd >&- 2>&- +[ "$?" = "0" -a -z "$FAILSAFE" ] && { - grep '^root:[^!]' /etc/passwd >&- 2>&- && - { echo "Login failed." exit 0 - } || { +} || { cat << EOF === IMPORTANT ============================ Use 'passwd' to set your login password this will disable telnet and enable SSH ------------------------------------------ EOF - } } + exec /bin/ash --login