summaryrefslogtreecommitdiff
path: root/openwrt/target/default/target_skeleton/bin
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-03-06 03:34:52 +0000
committerMike Baker <mbm@openwrt.org>2005-03-06 03:34:52 +0000
commit6b93231c4f64a61103dfc16acebedd18b4c25171 (patch)
treeaad933069e7dedf29eb70dbfd81e9ca95d9b578f /openwrt/target/default/target_skeleton/bin
parent14e0fec336fca0766605968fe9dd7eef2448736f (diff)
downloadmtk-20170518-6b93231c4f64a61103dfc16acebedd18b4c25171.zip
mtk-20170518-6b93231c4f64a61103dfc16acebedd18b4c25171.tar.gz
mtk-20170518-6b93231c4f64a61103dfc16acebedd18b4c25171.tar.bz2
nbd's makefile/menuconfig rewrite
SVN-Revision: 307
Diffstat (limited to 'openwrt/target/default/target_skeleton/bin')
-rwxr-xr-xopenwrt/target/default/target_skeleton/bin/login11
1 files changed, 10 insertions, 1 deletions
diff --git a/openwrt/target/default/target_skeleton/bin/login b/openwrt/target/default/target_skeleton/bin/login
index 7520824..bf06359 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