Is it possible to have a bash script that toggle my wifi on and off? I am using lion (10.7.2).
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
Assuming your hardware is somewhat similar to mine:
You can run To toggle put something like the following lines into a script or shell function:
|
|||
|
|
The port name is Wi-Fi on 10.7 and AirPort on 10.6. The device name can be at least |
|||
|
|