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
master
Felix Fietkau 2008-08-27 22:19:42 +00:00
parent d1b274fa4d
commit b84846eedc
1 changed files with 1 additions and 1 deletions

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