[package] base-files: now that the initial password is completely empty (and not...
[openwrt/svn-archive/archive.git] / package / base-files / files / bin / login.sh
1 #!/bin/sh
2 # Copyright (C) 2006-2011 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