modernize backfire 10.03 so it can be operational again
[openwrt-10.03/.git] / package / base-files / files / bin / login.sh
1 #!/bin/sh
2 # Copyright (C) 2006-2010 OpenWrt.org
3
4 if grep -qs '^root:[^!]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then
5         echo "Login failed."
6         exit 0
7 else
8 cat << EOF
9  === IMPORTANT ============================
10   Use 'passwd' to set your login password
11   this will disable telnet and enable SSH
12  ------------------------------------------
13 EOF
14 fi
15
16 exec /bin/ash --login