fix ppp interface enumeration - don't enumerate already processed interfaces
SVN-Revision: 12416
This commit is contained in:
parent
38b96e6b68
commit
1c3b76013a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue