summaryrefslogtreecommitdiff
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
commit1c3b76013a2c7bb94f8045cd0ec56b1ff4db95d2 (patch)
tree1a3581ba2a9c70c063e3875dd9daf11f04fae0e7 /package/ppp/files
parent38b96e6b68453f94c8354fd5b9d3c88b32d161b0 (diff)
downloadmtk-20170518-1c3b76013a2c7bb94f8045cd0ec56b1ff4db95d2.zip
mtk-20170518-1c3b76013a2c7bb94f8045cd0ec56b1ff4db95d2.tar.gz
mtk-20170518-1c3b76013a2c7bb94f8045cd0ec56b1ff4db95d2.tar.bz2
fix ppp interface enumeration - don't enumerate already processed interfaces
SVN-Revision: 12416
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 87872e0..6b8ad9c 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))"