summaryrefslogtreecommitdiffstats
path: root/openwrt/target/default/target_skeleton/bin/login
blob: bf06359dee3d083d9e7ee9f29f83ca1c314af819 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
[ "$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