use pidfiles for hostapd/wpa_supplicant instead of killing all processes when bringing an interface down - fixes an issue with random hostapd death

SVN-Revision: 13078
This commit is contained in:
Felix Fietkau
2008-10-29 17:26:49 +00:00
parent 9161a70235
commit a4f11ca22e
4 changed files with 7 additions and 9 deletions

View File

@@ -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