projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8819df
)
remove last reference to /etc/sysconf
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 21 Mar 2006 13:42:32 +0000
(13:42 +0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/bin/login
b/openwrt/package/base-files/default/bin/login
index e6479c10d315fd0ca69cc488c6bfaad61ec37155..9d90735c3563510ca53cf35316e3bb8d4fa9bc98 100755
(executable)
--- 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