主要变更: - 创建 lib/lib-common.sh 公共函数库,减少约2300行重复代码 - 重构所有机型脚本,改为从远程加载公共库 - 删除 Docker 安装功能(路由器运行Docker不稳定) - 删除无用文件:reinstall_istore.sh、try.sh、index.html、docker目录 - 修改 AdGuardHome 函数为操作提示 - 更新 README.md,添加项目结构说明
95 lines
2.6 KiB
Markdown
95 lines
2.6 KiB
Markdown
## 🚀 快速上手
|
||
|
||
### 一键安装 (推荐)
|
||
|
||
下载并运行主脚本,会自动检测路由器型号:
|
||
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/main.sh)"
|
||
```
|
||
|
||
主脚本支持自动检测以下机型:
|
||
- GL-iNet BE-6500 / BE-3600
|
||
- GL-iNet MT-5000 / MT-3600
|
||
- GL-iNet MT-2500A / MT-3000 / MT-6000
|
||
- OP24 固件专用脚本
|
||
|
||
### 单独机型脚本
|
||
|
||
如需单独运行某机型脚本,可使用以下命令:
|
||
|
||
#### MT2500 / MT3000 / MT6000
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/gl-inet.sh)"
|
||
```
|
||
|
||
#### MT3000 / MT6000 (OP24固件)
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/gl-inet-op24.sh)"
|
||
```
|
||
|
||
#### BE6500
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/be6500.sh)"
|
||
```
|
||
|
||
#### BE3600
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/be3600.sh)"
|
||
```
|
||
|
||
#### MT-3600BE
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/mt3600.sh)"
|
||
```
|
||
|
||
#### MT-5000
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/mt5000.sh)"
|
||
```
|
||
|
||
#### MT-3000 换分区助手 (U盘扩容)
|
||
```bash
|
||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/mt-3000/mt3000.sh)"
|
||
```
|
||
|
||
---
|
||
|
||
## 📝 MT3000 OP24固件软件源配置
|
||
|
||
如果你升级到原厂4.8.3-op24,建议把默认软件源替换为阿里云:
|
||
|
||
```
|
||
src/gz core https://fw.gl-inet.cn/releases/v24.x/24.10.4/mediatek/filogic
|
||
src/gz base https://mirrors.aliyun.com/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/base
|
||
src/gz luci https://mirrors.aliyun.com/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/luci
|
||
src/gz packages https://mirrors.aliyun.com/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/packages
|
||
src/gz routing https://mirrors.aliyun.com/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/routing
|
||
src/gz telephony https://mirrors.aliyun.com/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/telephony
|
||
```
|
||
|
||
---
|
||
|
||
## 📁 项目结构
|
||
|
||
```
|
||
gl/
|
||
├── main.sh # 主入口脚本
|
||
├── lib/
|
||
│ └── lib-common.sh # 公共函数库
|
||
├── be6500.sh # BE6500专用脚本
|
||
├── be3600.sh # BE3600专用脚本
|
||
├── mt5000.sh # MT5000专用脚本
|
||
├── mt3600.sh # MT3600专用脚本
|
||
├── gl-inet.sh # MT2500/3000/6000通用脚本
|
||
├── gl-inet-op24.sh # OP24固件专用脚本
|
||
└── mt-3000/
|
||
└── mt3000.sh # MT3000换分区助手
|
||
```
|
||
|
||
---
|
||
|
||
## 🔗 相关链接
|
||
|
||
- 作者导航站:https://tvhelper.cpolar.cn
|
||
- 项目赞助:https://wkdaily.cpolar.cn/01 |