fix ppp interface enumeration - don't enumerate already processed interfaces
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 27 Aug 2008 22:19:42 +0000 (22:19 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 27 Aug 2008 22:19:42 +0000 (22:19 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12416 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/ppp/files/ppp.sh

index 87872e0..6b8ad9c 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))"
This page took 0.023065 seconds and 4 git commands to generate.