From 6ae19d404b1b8efa3b76b781ab29f13f3f93a835 Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 11 Jun 2012 13:25:58 +0000 Subject: [package] netifd: localize internally used shell variables (#11567) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32192 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/netifd/files/lib/network/config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/netifd/files/lib/network/config.sh') diff --git a/package/netifd/files/lib/network/config.sh b/package/netifd/files/lib/network/config.sh index 3b3ae9340..9128971da 100755 --- a/package/netifd/files/lib/network/config.sh +++ b/package/netifd/files/lib/network/config.sh @@ -5,6 +5,7 @@ find_config() { local device="$1" + local ifdev ifl3dev ifobj for ifobj in `ubus list network.interface.\*`; do interface="${ifobj##network.interface.}" ( @@ -36,7 +37,7 @@ ubus_call() { fixup_interface() { local config="$1" - local ifname type + local ifname type device l3dev config_get type "$config" type config_get ifname "$config" ifname -- cgit v1.2.3