nbd's makefile/menuconfig rewrite
[openwrt-10.03/.git] / target / default / target_skeleton / bin / login
1 #!/bin/sh
2 [ "$FAILSAFE" = "true" ] && exec /bin/ash --login
3
4 [ -f /etc/sysconf ] && . /etc/sysconf
5
6 if [ "$BR2_SYSCONF_TELNET_FAILSAFE_ONLY" = "y" ]; then
7         echo "Login failed."
8         exit 0
9 fi
10
11 exec /bin/ash --login