fix ppp interface enumeration - don't enumerate already processed interfaces
authorFelix Fietkau <nbd@openwrt.org>
Wed, 27 Aug 2008 22:19:42 +0000 (22:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 27 Aug 2008 22:19:42 +0000 (22:19 +0000)
SVN-Revision: 12416

package/ppp/files/ppp.sh

index 87872e07ae2c81a88b6cfaf09c2a8d36f4912792..6b8ad9ca7029284a6225d3836dbc700f98dc9225 100644 (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))"