From 0bb0fd1e71a3da13f154a85d378db226f43b2932 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 27 Aug 2008 22:19:42 +0000 Subject: [PATCH] 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 --- package/ppp/files/ppp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 87872e07a..6b8ad9ca7 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))" -- 2.20.1