Reputation: 24902
How can I turn on and off the wifi and bluetooth connections, change the sound and brightness levels on OSX?
Upvotes: 1
Views: 2220
Reputation: 29965
Simply execute the right commands :-) You could probably even use AppleScript.
ifconfig en1 off
or networksetup -setairportpower off
It's probably all possible without exec()
calls, but it's easier this way.
Upvotes: 6