Sunday, September 13, 2009

Using Terminal to turn Airport off

Here is a little code snippet to use terminal to turn the Airport on and off

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setnetworkserviceenabled "AirPort" off