2005-02-06 00:52:16 +00:00
|
|
|
#!/bin/sh
|
2011-11-11 13:25:31 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-06-27 00:36:13 +00:00
|
|
|
|
2011-11-11 13:25:31 +00:00
|
|
|
if grep -qs '^root:[^!:]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then
|
2010-07-18 18:36:12 +00:00
|
|
|
echo "Login failed."
|
|
|
|
exit 0
|
|
|
|
else
|
2005-05-13 13:49:48 +00:00
|
|
|
cat << EOF
|
|
|
|
=== IMPORTANT ============================
|
|
|
|
Use 'passwd' to set your login password
|
|
|
|
this will disable telnet and enable SSH
|
|
|
|
------------------------------------------
|
|
|
|
EOF
|
2010-07-18 18:36:12 +00:00
|
|
|
fi
|
2006-04-05 02:09:22 +00:00
|
|
|
|
2005-03-06 03:34:52 +00:00
|
|
|
exec /bin/ash --login
|