Skip to content

Commit

Permalink
Use rfkill if available
Browse files Browse the repository at this point in the history
  • Loading branch information
rking authored and rking@sharpsaw.org committed Mar 18, 2013
1 parent 4d96b74 commit e4073a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/,wifi
Expand Up @@ -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
Expand Down

0 comments on commit e4073a6

Please sign in to comment.