From: Felix Fietkau Date: Wed, 27 Aug 2008 22:19:42 +0000 (+0000) Subject: fix ppp interface enumeration - don't enumerate already processed interfaces X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1c3b76013a2c7bb94f8045cd0ec56b1ff4db95d2;p=openwrt%2Fstaging%2Fneocturne.git fix ppp interface enumeration - don't enumerate already processed interfaces SVN-Revision: 12416 --- diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 87872e07ae..6b8ad9ca70 100644 --- a/package/ppp/files/ppp.sh +++ b/package/ppp/files/ppp.sh @@ -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))"