mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:25:21 +02:00
fix ppp interface enumeration - don't enumerate already processed interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12416 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5529ade646
commit
0bb0fd1e71
@ -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
Block a user