rename our /bin/login script to /bin/login.sh to avoid collisions with busybox - we always use -l on telnetd anyway
SVN-Revision: 15097
This commit is contained in:
parent
714ffa3260
commit
de0332f86a
@ -11,7 +11,7 @@ failsafe() {
|
||||
[ -n "$ifname" ] && grep "$ifname" /proc/net/dev >/dev/null && {
|
||||
failsafe_ip
|
||||
netmsg 192.168.1.255 "Entering Failsafe!"
|
||||
telnetd -l /bin/login <> /dev/null 2>&1
|
||||
telnetd -l /bin/login.sh <> /dev/null 2>&1
|
||||
}
|
||||
lock /tmp/.failsafe
|
||||
ash --login
|
||||
|
@ -7,7 +7,7 @@ start() {
|
||||
awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \
|
||||
( [ \! -x /usr/sbin/dropbear ] && [ \! -x /usr/sbin/sshd ] )
|
||||
then \
|
||||
telnetd -l /bin/login
|
||||
telnetd -l /bin/login.sh
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ failsafe() {
|
||||
}
|
||||
|
||||
netmsg 192.168.1.255 "Entering Failsafe!"
|
||||
telnetd -l /bin/login <> /dev/null 2>&1
|
||||
telnetd -l /bin/login.sh <> /dev/null 2>&1
|
||||
|
||||
ash --login
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user