1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 18:14:04 +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:
nbd 2008-08-27 22:19:42 +00:00
parent 5529ade646
commit 0bb0fd1e71

View File

@ -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))"