Permalink
Browse files

Use rfkill if available

  • Loading branch information...
rking authored and rking@sharpsaw.org committed Mar 18, 2013
1 parent 4d96b74 commit e4073a69ae403b6ecb7e235adb5ccc613c6d6885
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/,wifi
View
@@ -26,7 +26,8 @@ if=${IF:-wlan0}
essid=$1
sudo ifconfig $if down
-sudo killall -q dhcpcd wpa_supplicant || true
+sudo killall -q dhcpcd wpa_supplicant && sleep 2 || true
+sudo rfkill unblock wlan && sleep 2 || true
sudo ifconfig $if up
if [ -n "$essid" ]; then

0 comments on commit e4073a6

Please sign in to comment.