fix ppp unit number issues (#2178)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8665 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
95f277fd2d
commit
f49065167c
|
@ -1,9 +1,12 @@
|
|||
scan_ppp() {
|
||||
config_get ifname "$1" ifname
|
||||
pppdev="${pppdev:-0}"
|
||||
config_set "$1" ifname "ppp$pppdev"
|
||||
config_set "$1" unit "$pppdev"
|
||||
pppdev="$(($pppdev + 1))"
|
||||
config_get unit "$1" unit
|
||||
[ -z "$unit" ] && {
|
||||
config_set "$1" ifname "ppp$pppdev"
|
||||
config_set "$1" unit "$pppdev"
|
||||
pppdev="$(($pppdev + 1))"
|
||||
}
|
||||
}
|
||||
|
||||
start_pppd() {
|
||||
|
|
Loading…
Reference in New Issue