2013-03-02 10:39:54 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
sudo killall -q hostapd
|
|
|
|
sudo killall -q wpa_supplicant
|
2013-08-26 10:28:32 +02:00
|
|
|
for i in `pidof valgrind.bin`; do
|
|
|
|
if ps $i | grep -q -E "wpa_supplicant|hostapd"; then
|
|
|
|
sudo kill $i
|
|
|
|
fi
|
|
|
|
done
|
2013-03-09 16:39:11 +01:00
|
|
|
sudo killall -q wlantest
|
2013-04-26 11:36:56 +02:00
|
|
|
sudo killall -q tcpdump
|
2013-03-09 16:39:11 +01:00
|
|
|
if grep -q hwsim0 /proc/net/dev; then
|
|
|
|
sudo ifconfig hwsim0 down
|
|
|
|
fi
|
2013-03-02 10:39:54 +01:00
|
|
|
if grep -q mac80211_hwsim /proc/modules ; then
|
|
|
|
sudo rmmod mac80211_hwsim
|
|
|
|
fi
|