Added vlan enabling as suggested in #204, closes #204
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / bin / login
1 #!/bin/sh
2 . /etc/sysconf 2>&-
3
4 [ "$FAILSAFE" != "true" ] &&
5 [ "$BR2_SYSCONF_TELNET_FAILSAFE_ONLY" = "y" ] &&
6 {
7 grep '^root:[^!]' /etc/passwd >&- 2>&- &&
8 {
9 echo "Login failed."
10 exit 0
11 } || {
12 cat << EOF
13 === IMPORTANT ============================
14 Use 'passwd' to set your login password
15 this will disable telnet and enable SSH
16 ------------------------------------------
17 EOF
18 }
19 }
20 exec /bin/ash --login