From 382a56d914fd45b0854cd2a770473c46810d0a85 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Oct 2008 17:26:49 +0000 Subject: use pidfiles for hostapd/wpa_supplicant instead of killing all processes when bringing an interface down - fixes an issue with random hostapd death git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13078 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/sbin/wifi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/base-files/files') 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 -- cgit v1.2.3 e='hidden' name='id' value='79a27bd7b23df6d31ee3ac57529ea981452343a1'/> upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/106-get_arch.patch
blob: 3140f3679953f9dc326e02fddd61b4496b4fbfd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21