summaryrefslogtreecommitdiffstats
path: root/btc/mining
diff options
context:
space:
mode:
authoruser <user@bergwerk>2011-07-09 07:53:10 +0000
committeruser <user@bergwerk>2011-07-09 07:53:10 +0000
commit87baf64466d7ec70dca49e822dc39aaae180ab65 (patch)
tree4f1ae7ee3443ce82e0be5e67b0b646374e7e1ac4 /btc/mining
parent4be9983acfdf35e4cfe54dc116163f1ec392f3a9 (diff)
ensure-wlan0: try harder
Diffstat (limited to 'btc/mining')
-rwxr-xr-xbtc/mining/bin/ensure-wlan015
1 files changed, 9 insertions, 6 deletions
diff --git a/btc/mining/bin/ensure-wlan0 b/btc/mining/bin/ensure-wlan0
index 77587156..95d626d2 100755
--- a/btc/mining/bin/ensure-wlan0
+++ b/btc/mining/bin/ensure-wlan0
@@ -12,13 +12,16 @@ has_internet() {
if ! has_internet; then
- ## get rid of the nightmare applet
- pkill -9 nm-applet
- if test -x "`type -p nm-applet`"; then
- rm -vf "`type -p nm-applet`"
- fi
+ ## get rid of the fuckers
+ for fucker in NetworkManager nm-applet; do
+ pkill -9 $fucker
+ if test -x "`type -p $fucker`"; then
+ rm -vf "`type -p $fucker`"
+ fi
+ done
- beep -l 50 -f 2000; pkill wpa_supplicant
+ beep -l 50 -f 2000; pkill wpa
+ beep -l 50 -f 2000; rm -vf /var/run/wpa_supplicant/*
beep -l 50 -f 2000; wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf &
while ! wpa_cli status | grep -q wpa_state=COMPLETED; do
beep -l 50 -f 2000 -D 50 -n -l 50 -f 2000