fix issues with multiple ppp links (noticed by Stefano Rivera)
SVN-Revision: 8563
This commit is contained in:
parent
4bb9476035
commit
a391a14e23
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue