mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 15:28:57 +02:00
fix issues with multiple ppp links (noticed by Stefano Rivera)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8563 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
437677dfb4
commit
0b509e2ff2
@ -3,6 +3,7 @@ scan_ppp() {
|
||||
pppdev="${pppdev:-0}"
|
||||
config_set "$1" ifname "ppp$pppdev"
|
||||
config_set "$1" unit "$pppdev"
|
||||
pppdev="$(($pppdev + 1))"
|
||||
}
|
||||
|
||||
start_pppd() {
|
||||
@ -38,6 +39,7 @@ start_pppd() {
|
||||
defaultroute \
|
||||
replacedefaultroute \
|
||||
${username:+user "$username" password "$password"} \
|
||||
unit "$pppdev" \
|
||||
linkname "$cfg" \
|
||||
ipparam "$cfg" \
|
||||
${connect:+connect "$connect"} \
|
||||
|
Loading…
Reference in New Issue
Block a user