diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-11 13:25:31 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-11 13:25:31 +0000 |
commit | 20ff304ed90da0fa22b3d550fe1045d53eed5a0e (patch) | |
tree | 339a703c720af4977791c90da68de7cb07381172 /package/base-files/files/bin | |
parent | 348347ce41e6704f1c66a608531d10cb7b78d729 (diff) | |
download | mtk-20170518-20ff304ed90da0fa22b3d550fe1045d53eed5a0e.zip mtk-20170518-20ff304ed90da0fa22b3d550fe1045d53eed5a0e.tar.gz mtk-20170518-20ff304ed90da0fa22b3d550fe1045d53eed5a0e.tar.bz2 |
base-files: now that the initial password is completely empty (and not primed with "!") adjust login.sh for it to make telnetd available again
SVN-Revision: 28943
Diffstat (limited to 'package/base-files/files/bin')
-rwxr-xr-x | package/base-files/files/bin/login.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/bin/login.sh b/package/base-files/files/bin/login.sh index a64c84e..b46769a 100755 --- a/package/base-files/files/bin/login.sh +++ b/package/base-files/files/bin/login.sh @@ -1,7 +1,7 @@ #!/bin/sh -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org -if grep -qs '^root:[^!]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then +if grep -qs '^root:[^!:]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then echo "Login failed." exit 0 else |