netifd: make type a local variable in /lib/network/config.sh to avoid clashes with...
[openwrt.git] / package / netifd / files / lib / network / config.sh
index 8fa9b1a..287124d 100755 (executable)
@@ -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