Skip to content

Calvin-LL/toggleairport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The credit for most of the code belongs to others including https://gist.github.com/albertbori/1798d88a93175b9da00b

This program turns off WiFi when it detects a wired ethernet connection and turns on WiFi when the ethernet is unplugged.

For Catalina and later

Tested on Catalina

git clone https://github.com/Calvin-LL/toggleairport.git
cd toggleairport
./install.sh

to uninstall just do

./uninstall.sh

For pre Catalina

(or if the Catalina version didn't work for you)

git clone --branch pre_catalina https://github.com/Calvin-LL/toggleairport.git
cd toggleairport
./install.sh

to uninstall just do

./uninstall.sh

Do not run either of the scripts with sudo, if you do, notifications will not display.

About

A script for macOS to turn off WiFi when Ethernet is plugged in, and turn on WiFi when Ethernet is unplugged

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%