[package] netifd: localize internally used shell variables (#11567)
[openwrt/svn-archive/archive.git] / package / netifd / files / lib / network / config.sh
index 3b3ae93404849a9b4ff63747df9c9c638ed9fdc3..9128971dab04305d25f5c65520471ebf2545c5f6 100755 (executable)
@@ -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