Skip to content

Instantly share code, notes, and snippets.

@jamesBan
Created February 19, 2020 01:10
Show Gist options
  • Save jamesBan/36155b58a4d26d653bc9a487ec7a0798 to your computer and use it in GitHub Desktop.
Save jamesBan/36155b58a4d26d653bc9a487ec7a0798 to your computer and use it in GitHub Desktop.
mac切换wifi
#!/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