[package] kernel: fix leds-net48xx and scx200-gpio dependencies, closes #4486
[openwrt.git] / package / base-files / files / sbin / wifi
index 54e55b4..e9752c6 100755 (executable)
@@ -67,6 +67,7 @@ start_net() {(
        local iface="$1"
        local config="$2"
 
+       [ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
        include /lib/network
        scan_interfaces
        setup_interface "$1" "$2"
@@ -83,6 +84,8 @@ set_wifi_down() {
        local cfg="$1"
        local vifs vif vifstr
 
+       [ -f "/var/run/wifi-${cfg}.pid" ] &&
+               kill "$(cat "/var/run/wifi-${cfg}.pid")"
        uci_revert_state wireless "$cfg"
        config_get vifs "$cfg" vifs
        for vif in $vifs; do
This page took 0.02279 seconds and 4 git commands to generate.