remove last reference to /etc/sysconf
authorFelix Fietkau <nbd@openwrt.org>
Tue, 21 Mar 2006 13:42:32 +0000 (13:42 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 21 Mar 2006 13:42:32 +0000 (13:42 +0000)
SVN-Revision: 3432

openwrt/package/base-files/default/bin/login

index e6479c10d315fd0ca69cc488c6bfaad61ec37155..9d90735c3563510ca53cf35316e3bb8d4fa9bc98 100755 (executable)
@@ -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