View Single Post
brandonjp

 
Member Since: Dec 04, 2007
Posts: 3
brandonjp is on a distinguished road

brandonjp is offline
FYI, you can also enable/disable the airport/Wi-fi without sudo using:

Code:
networksetup -setairportpower en0 off
or
Code:
networksetup -setairportpower en0 on
I put it in an Automator workflow > Run shell script. Add other stuff to the workflow if needed, then save as Application or Service (to use a hotkey).

* Note: You might need to change the "en0" part to match whichever network device you're wanting to affect. Get a list of all devices with:
Code:
networksetup -listallhardwareports
I'm using OS X Mountain Lion 10.8.2 - The commands might be slightly different on other OS versions. This page has some info:
http://macstuff.beachdogs.org/blog/?p=44
QUOTE Thanks