mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-21 03:55:06 +00:00
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 && {
|
[ -n "$ifname" ] && grep "$ifname" /proc/net/dev >/dev/null && {
|
||||||
failsafe_ip
|
failsafe_ip
|
||||||
netmsg 192.168.1.255 "Entering 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
|
||||||
}
|
}
|
||||||
lock /tmp/.failsafe
|
lock /tmp/.failsafe
|
||||||
ash --login
|
ash --login
|
||||||
|
@ -7,7 +7,7 @@ start() {
|
|||||||
awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \
|
awk -F: '/^root:/ && ($2 != "") && ($2 !~ /\!/) {exit 1}' /etc/passwd 2>/dev/null || \
|
||||||
( [ \! -x /usr/sbin/dropbear ] && [ \! -x /usr/sbin/sshd ] )
|
( [ \! -x /usr/sbin/dropbear ] && [ \! -x /usr/sbin/sshd ] )
|
||||||
then \
|
then \
|
||||||
telnetd -l /bin/login
|
telnetd -l /bin/login.sh
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ failsafe() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
netmsg 192.168.1.255 "Entering 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
|
ash --login
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user