https://github.com/honwen/mac-auto-xlan-switch
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac
https://github.com/honwen/mac-auto-xlan-switch
Last synced: 3 months ago
JSON representation
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac
- Host: GitHub
- URL: https://github.com/honwen/mac-auto-xlan-switch
- Owner: honwen
- License: mit
- Created: 2023-03-17T03:36:30.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T16:33:38.000Z (over 1 year ago)
- Last Synced: 2025-02-03T18:48:25.238Z (4 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Thanks (embeds)
- https://gist.github.com/albertbori/1798d88a93175b9da00b
#### Function
- When Ethernet connected, WiFi will be closed automatically.
- When Ethernet disconnected, WiFi will be open automatically.### Install
```shell
go install github.com/honwen/mac-auto-xlan-switch@latest
```### Use
```shell
sudo mac-auto-xlan-switch start
sudo mac-auto-xlan-switch stop
```### Help
```shell
$ mac-auto-xlan-switch -h
NNAME:
switcher - mac-auto-xlan-switchUSAGE:
mac-auto-xlan-switch [global options] command [command options] [arguments...]VERSION:
Git:[MISSING BUILD VERSION [GIT HASH]] (go1.20.4)COMMANDS:
start Start Auto xLan Switcher
stop Stop Auto xLan Switcher
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```