Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use rfkill if available

  • Loading branch information...
commit e4073a69ae403b6ecb7e235adb5ccc613c6d6885 1 parent 4d96b74
@rking rking authored rking@sharpsaw.org committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  bin/,wifi
View
3  bin/,wifi
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.