Code for disabling Wi-Fi when docking (connecting an ethernet adapter) and enabling Wi-Fi when disconnecting from ethernet.
I am using MacBook Pro 15'' with macOS Catalina.
- Put toggleAirport.sh in the correct location with the right permissions (see comment at the top of the file)
- Put com.mine.toggleairport.plist in the correct location with the right permissions (see comment at the top of the file)
Start manually with the following command, otherwise it should run automatically when the laptop boots.
sudo launchctl load /Library/LaunchAgents/com.mine.toggleairport.plist
This was taken from Albert Bori at https://gist.github.com/albertbori/1798d88a93175b9da00b. There are useful comments in Albert's gist which I used to get this bash script working on my machine.
how can i find Airport utility for catalina 10.15.7