refactor: 重构项目结构,提取公共函数库,删除无用文件和Docker功能
主要变更: - 创建 lib/lib-common.sh 公共函数库,减少约2300行重复代码 - 重构所有机型脚本,改为从远程加载公共库 - 删除 Docker 安装功能(路由器运行Docker不稳定) - 删除无用文件:reinstall_istore.sh、try.sh、index.html、docker目录 - 修改 AdGuardHome 函数为操作提示 - 更新 README.md,添加项目结构说明
This commit is contained in:
78
README.md
78
README.md
@@ -23,7 +23,42 @@ sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/main.sh)"
|
||||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/gl-inet.sh)"
|
||||
```
|
||||
|
||||
### MT3000 如果你升级到 原厂4.8.3-op24 强烈建议把默认软件源 替换为阿里云 因为op官网的源容易下载失败 影响任何软件的安装
|
||||
#### 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
|
||||
@@ -33,31 +68,28 @@ src/gz routing https://mirrors.aliyun.com/openwrt/releases/24.10.4/packages/aarc
|
||||
src/gz telephony https://mirrors.aliyun.com/openwrt/releases/24.10.4/packages/aarch64_cortex-a53/telephony
|
||||
```
|
||||
|
||||
## 新增 兼容原厂op24固件(luci 24.10.4)的脚本 (MT3000/6000)
|
||||
```bash
|
||||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/gl-inet-op24.sh)"
|
||||
---
|
||||
|
||||
## 📁 项目结构
|
||||
|
||||
```
|
||||
|
||||
#### 新增 BE6500脚本 (GL-BE6500) ❤️
|
||||
```bash
|
||||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/be6500.sh)"
|
||||
|
||||
```
|
||||
#### 新增 BE3600脚本 (GL-BE3600)
|
||||
```bash
|
||||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/be3600.sh)"
|
||||
|
||||
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换分区助手
|
||||
```
|
||||
|
||||
#### ❤️新增 MT-3600BE脚本 (GL-MT3600BE)
|
||||
```bash
|
||||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/mt3600.sh)"
|
||||
---
|
||||
|
||||
```
|
||||
## 🔗 相关链接
|
||||
|
||||
#### ❤️新增 MT-5000脚本 (GL-MT5000)
|
||||
```bash
|
||||
sh -c "$(curl -fsSL https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main/mt5000.sh)"
|
||||
|
||||
```
|
||||
- 作者导航站:https://tvhelper.cpolar.cn
|
||||
- 项目赞助:https://wkdaily.cpolar.cn/01
|
||||
Reference in New Issue
Block a user