aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/wifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-29 17:26:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-29 17:26:49 +0000
commita4f11ca22e6f69d2feab4f239eb84d35f7cbe555 (patch)
tree6816cc5e005ec5573100c83da92a5cd0783468a3 /package/base-files/files/sbin/wifi
parent9161a7023556a0db76e3d56fde12bc8b3c30a3e1 (diff)
downloadupstream-a4f11ca22e6f69d2feab4f239eb84d35f7cbe555.tar.gz
upstream-a4f11ca22e6f69d2feab4f239eb84d35f7cbe555.tar.bz2
upstream-a4f11ca22e6f69d2feab4f239eb84d35f7cbe555.zip
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
Diffstat (limited to 'package/base-files/files/sbin/wifi')
-rwxr-xr-xpackage/base-files/files/sbin/wifi2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi
index 63e132d4f1..e9752c6039 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