base-files, target: assign name to system timeserver section, makes it easier to...
[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.053351 seconds and 5 git commands to generate.