Skip to content

Instantly share code, notes, and snippets.

@mkocher
Created July 18, 2010 02:01
Show Gist options
  • Save mkocher/480043 to your computer and use it in GitHub Desktop.
Save mkocher/480043 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
if `networksetup -getairportpower AirPort` =~ /On/
exec "networksetup -setairportpower AirPort off"
else
exec "networksetup -setairportpower AirPort on"
end
raise "Code here isn't very usefull"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment