From 0eced37b72d7cf25fef2628fc0a14a22a01b28a4 Mon Sep 17 00:00:00 2001 From: jow Date: Fri, 11 Nov 2011 13:25:31 +0000 Subject: [package] base-files: now that the initial password is completely empty (and not primed with "!") adjust login.sh for it to make telnetd available again git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28943 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/bin/login.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/base-files/files') diff --git a/package/base-files/files/bin/login.sh b/package/base-files/files/bin/login.sh index a64c84e1e..b46769a01 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 -- cgit v1.2.3