aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-27 22:19:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-27 22:19:42 +0000
commitb84846eedc8991b5bb49ff833aafd3b13f126dd8 (patch)
tree9c79db4d1685744326de1ab9cae8b2eeb8ebdb2a /package/ppp/files
parentd1b274fa4d89285ef8a8e80f439ec8db396e1776 (diff)
downloadupstream-b84846eedc8991b5bb49ff833aafd3b13f126dd8.tar.gz
upstream-b84846eedc8991b5bb49ff833aafd3b13f126dd8.tar.bz2
upstream-b84846eedc8991b5bb49ff833aafd3b13f126dd8.zip
fix ppp interface enumeration - don't enumerate already processed interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12416 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files')
-rw-r--r--package/ppp/files/ppp.sh2
1 files changed, 1 insertions, 1 deletions
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))"