X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/6fa165042b07cbb6ff52d2439e79d8ffe17be4ab..cc87f5fa800e6880c8f876bc26ffcf6b5e8e16ca:/openwrt/target/default/target_skeleton/bin/login?ds=inline diff --git a/openwrt/target/default/target_skeleton/bin/login b/openwrt/target/default/target_skeleton/bin/login index 75208248d..bf06359de 100755 --- a/openwrt/target/default/target_skeleton/bin/login +++ b/openwrt/target/default/target_skeleton/bin/login @@ -1,2 +1,11 @@ #!/bin/sh -exec ash --login +[ "$FAILSAFE" = "true" ] && exec /bin/ash --login + +[ -f /etc/sysconf ] && . /etc/sysconf + +if [ "$BR2_SYSCONF_TELNET_FAILSAFE_ONLY" = "y" ]; then + echo "Login failed." + exit 0 +fi + +exec /bin/ash --login