- 中文文档
OSX 14.3 has fixed this problem, this tool no longer needed in OSX 14, but it still needed in OSX 13- I found that the problem still exists in OSX 14, so I will continue to maintain this project.
- Auto Switch the Ethernet and WiFi
- Due to the company's poor WiFi env, I switched to using wired network. However, once WiFi is turned on, the network latency quickly increases, meaning that even when connected to the wired network, WiFi is always given priority. Even you change the order in the network list like Apple told us. To solve this problem, I created a command tool that can automatically turn off WiFi and configure the network with just one click.
- This project is mainly based on Albertbori's work page,
- I change the script and add some commands to make it work on the OSX 12.1.
- Finally, make all this work into a single command.
- When Ethernet connected, WiFi will be closed automatically.
- When Ethernet disconnected, WiFi will be open automatically.
- OSX 13
- Device
- USB10
- AX88179A
- Thunderbolt Ethernet Slot
go install github.com/lxy1992/mac-network-switch@latest
sudo mac-network-switch toggleAirport --switch start
sudo mac-network-switch toggleAirport --switch stop