large init script cleanup and merge of whiterussian changes, new dnsmasq config handling
[openwrt.git] / openwrt / package / base-files / default / bin / login
1 #!/bin/sh
2 grep '^root:[^!]' /etc/passwd >&- 2>&-
3 [ "$?" = "0" -a -z "$FAILSAFE" ]  &&  
4 {
5     echo "Login failed."
6     exit 0
7 } || {
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 }
15
16 exec /bin/ash --login