X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/c31ac521e420aa0cfd3ddbc0859b29b0e2a3ff3e..24a035d1b5f146957f1615b2636851a969cf5dd3:/target/default/target_skeleton/bin/login?ds=inline diff --git a/target/default/target_skeleton/bin/login b/target/default/target_skeleton/bin/login index 75208248d..bf06359de 100755 --- a/target/default/target_skeleton/bin/login +++ b/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