linux/ar71xx: add 2.6.38 preliminary support
[openwrt.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
This page took 0.039788 seconds and 5 git commands to generate.