Created
March 14, 2016 05:44
-
-
Save jimmyeisenhauer/5ced81d7c7f18c7adf14 to your computer and use it in GitHub Desktop.
Shell script to cycle osx wifi connection in a loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COUNTER=0 | |
while [ $COUNTER -lt 10 ]; do | |
echo The counter is $COUNTER | |
let COUNTER=COUNTER+1· | |
networksetup -setairportpower airport off; networksetup -setairportpower airport on | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment