From 6a7e3f1597cf70df19aca0b3d949b6c9e2ccc14f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 21 Mar 2006 13:42:32 +0000 Subject: [PATCH] remove last reference to /etc/sysconf SVN-Revision: 3432 --- openwrt/package/base-files/default/bin/login | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/openwrt/package/base-files/default/bin/login b/openwrt/package/base-files/default/bin/login index e6479c10d3..9d90735c35 100755 --- a/openwrt/package/base-files/default/bin/login +++ b/openwrt/package/base-files/default/bin/login @@ -1,10 +1,6 @@ #!/bin/sh -. /etc/sysconf 2>&- - -[ "$FAILSAFE" != "true" ] && +grep '^root:[^!]' /etc/passwd >&- 2>&- && { - grep '^root:[^!]' /etc/passwd >&- 2>&- && - { echo "Login failed." exit 0 } || { @@ -14,6 +10,6 @@ cat << EOF this will disable telnet and enable SSH ------------------------------------------ EOF - } } + exec /bin/ash --login -- 2.30.2