netifd: ifup-shellscript - fix wrong usage of 'local'
[openwrt/staging/mkresin.git] / package / network / config / netifd / files / sbin / ifup
index af3aaa8453ce93f52c2b89e743f43f9c509ad696..5515b91f76df2b5c36d46ac4b86dfc9bdcd78b1d 100755 (executable)
@@ -67,12 +67,10 @@ if [ -n "$setup_wifi" ] && grep -sq config /etc/config/wireless; then
                fi
        }
 
-       local radio_devs
-       local network="$1"
+       network="$1"
        config_load wireless
        config_foreach find_related_radios wifi-iface
 
-       local dev
        for dev in $(echo "$radio_devs" | sort -u); do
                /sbin/wifi up "$dev"
        done