优化第三方软件包添加方式

This commit is contained in:
Hyy2001X
2021-07-17 00:15:56 +08:00
parent 2bfa03cf6c
commit cd7c4f8234
4 changed files with 44 additions and 12 deletions
+21 -7
View File
@@ -1,7 +1,21 @@
svn other luci-app-smartdns kenzok8/openwrt-packages/trunk
git other luci-app-serverchan tty228
svn other luci-app-socat Lienol/openwrt-package/trunk
git other luci-app-onliner Hyy2001X
git other luci-app-adguardhome Hyy2001X
svn other luci-app-eqos kenzok8/openwrt-packages/trunk
git other OpenClash vernesong master
#!/bin/bash
# 推荐使用的 case 判断参数:
# OP_Maintainer Openwrt 源码作者
# OP_REPO_NAME Openwrt 仓库名称
# OP_BRANCH Openwrt 源码分支/Tag
# TARGET_PROFILE 设备名称
# TARGET_BOARD 设备架构
case "${OP_Maintainer},${OP_BRANCH}" in
coolsnowwolf,master)
AddPackage svn other luci-app-smartdns kenzok8/openwrt-packages/trunk
AddPackage git other luci-app-serverchan tty228
AddPackage svn other luci-app-socat Lienol/openwrt-package/trunk
AddPackage git other luci-app-onliner Hyy2001X
AddPackage git other luci-app-adguardhome Hyy2001X
AddPackage svn other luci-app-eqos kenzok8/openwrt-packages/trunk
AddPackage git other OpenClash vernesong master
AddPackage git other luci-app-adblock-plus small-5 master
;;
esac