fix ppp interface enumeration - don't enumerate already processed interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12416 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
d1b274fa4d
commit
b84846eedc
|
@ -2,7 +2,7 @@ scan_ppp() {
|
|||
config_get ifname "$1" ifname
|
||||
pppdev="${pppdev:-0}"
|
||||
config_get unit "$1" unit
|
||||
[ -z "$unit" ] && {
|
||||
[ -z "$unit" -a "${ifname%%[0-9]*}" != ppp ] && {
|
||||
config_set "$1" ifname "ppp$pppdev"
|
||||
config_set "$1" unit "$pppdev"
|
||||
pppdev="$(($pppdev + 1))"
|
||||
|
|
Loading…
Reference in New Issue