Created
February 19, 2020 01:10
-
-
Save jamesBan/36155b58a4d26d653bc9a487ec7a0798 to your computer and use it in GitHub Desktop.
mac切换wifi
This file contains 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 | |
switch office wifi | |
networksetup -setairportnetwork en0 wifi网络名 | |
if [ $? -ne 0 ]; then | |
echo "swtich office network fail" | |
exit | |
fi | |
leep 2 | |
echo "switch office wifi success"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment