Tiger users: the following section does not work in Tiger because the networksetup CLU is in a different place than in Leopard. You will need to replace every instance of "/usr/sbin/networksetup" with "
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup"Now for the guts of the script. To find out how to use the networksetup command line utility, use:
/usr/sbin/networksetup -printcommandsNote that to use the networksetup CLU you need to use "/usr/sbin/networksetup" and not just "networksetup".
The terminal command to turn off the airport is:
/usr/sbin/networksetup -setairportpower offto turn it back on, change "off" to "on":
/usr/sbin/networksetup -setairportpower on[Via]
0 comments:
Post a Comment