Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMS-7(feat): add doc for chinese #13

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Mac网络自动切换
- 自动切换以太网和WiFi
- 由于公司的WiFi环境较差,我转而使用有线网络。然而,一旦打开WiFi,网络延迟迅速增加,这意味着即使连接到有线网络,WiFi始终被优先考虑。即使你按照苹果的指示改变了网络列表中的顺序。为了解决这个问题,我创建了一个命令工具,只需一键就可以自动关闭WiFi并配置网络。
- 这个项目主要基于Albertbori的工作[页面](https://gist.github.com/albertbori/1798d88a93175b9da00b),
- 我改变了脚本并添加了一些命令,使其能在OSX 12.1上工作。
- 最后,将所有这些工作整合成一个单一的命令。

## 功能
- 当以太网连接时,WiFi将自动关闭。
- 当以太网断开时,WiFi将自动打开。

## 如何使用
### 安装
```shell
go install github.com/lxy1992/mac-network-switch@latest
```
### 使用

```shell
sudo mac-network-switch toggleAirport --switch start
sudo mac-network-switch toggleAirport --switch stop
```
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
- When Ethernet connected, WiFi will be closed automatically.
- When Ethernet disconnected, WiFi will be open automatically.

## Support
- OSX 13
- Device
- USB10
- AX88179A
- Thunderbolt Ethernet Slot

## How to Use
### Install
```shell
Expand Down
Loading