fix ppp interface enumeration - don't enumerate already processed interfaces

SVN-Revision: 12416
This commit is contained in:
Felix Fietkau 2008-08-27 22:19:42 +00:00
parent 38b96e6b68
commit 1c3b76013a

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