remove shell based ipkg, if someone need it, add it as a package
[openwrt.git] / 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
This page took 0.044838 seconds and 5 git commands to generate.