From: Felix Fietkau <nbd@openwrt.org>
Date: Sat, 21 Apr 2012 20:34:41 +0000 (+0000)
Subject: netifd: make type a local variable in /lib/network/config.sh to avoid clashes with... 
X-Git-Tag: reboot~14187
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bfa643c7ef15ddf18066e9cf13a15fc9f687613d;p=openwrt%2Fopenwrt.git

netifd: make type a local variable in /lib/network/config.sh to avoid clashes with an internal config_foreach variable

SVN-Revision: 31430
---

diff --git a/package/netifd/files/lib/network/config.sh b/package/netifd/files/lib/network/config.sh
index 8fa9b1ac3d..287124de66 100755
--- a/package/netifd/files/lib/network/config.sh
+++ b/package/netifd/files/lib/network/config.sh
@@ -36,7 +36,7 @@ ubus_call() {
 
 fixup_interface() {
 	local config="$1"
-	local ifname
+	local ifname type
 
 	config_get type "$config" type
 	config_get ifname "$config" ifname