mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:30:37 +02:00
rename our /bin/login script to /bin/login.sh to avoid collisions with busybox - we always use -l on telnetd anyway
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15097 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d58097e65d
commit
fcd35cb061
@ -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