You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
379 B
19 lines
379 B
20 years ago
|
#!/bin/sh
|
||
19 years ago
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
|
||
19 years ago
|
grep '^root:[^!]' /etc/passwd >&- 2>&-
|
||
|
[ "$?" = "0" -a -z "$FAILSAFE" ] &&
|
||
20 years ago
|
{
|
||
|
echo "Login failed."
|
||
|
exit 0
|
||
19 years ago
|
} || {
|
||
20 years ago
|
cat << EOF
|
||
|
=== IMPORTANT ============================
|
||
|
Use 'passwd' to set your login password
|
||
|
this will disable telnet and enable SSH
|
||
|
------------------------------------------
|
||
|
EOF
|
||
|
}
|
||
19 years ago
|
|
||
20 years ago
|
exec /bin/ash --login
|