X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/76193c62418e7c6cea17497770d628ebd298dc18..f7dba878382bdc36c90dc32c19a15ebd2f4affa0:/package/base-files/files/sbin/wifi?ds=sidebyside diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 63e132d4f..e9752c603 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -84,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