Root/package/base-files/files/bin/login.sh

1#!/bin/sh
2# Copyright (C) 2006-2010 OpenWrt.org
3
4if grep -qs '^root:[^!]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then
5    echo "Login failed."
6    exit 0
7else
8cat << EOF
9 === IMPORTANT ============================
10  Use 'passwd' to set your login password
11  this will disable telnet and enable SSH
12 ------------------------------------------
13EOF
14fi
15
16exec /bin/ash --login
17

Archive Download this file



interactive