diff --git a/CustomPackages/Common b/CustomPackages/Common index 2270a4e..0c605c2 100644 --- a/CustomPackages/Common +++ b/CustomPackages/Common @@ -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 diff --git a/CustomPackages/asus_rt-acrh17 b/CustomPackages/asus_rt-acrh17 index dbda1d7..121b52a 100644 --- a/CustomPackages/asus_rt-acrh17 +++ b/CustomPackages/asus_rt-acrh17 @@ -1 +1,7 @@ -git other luci-app-usb3disable rufengsuixing +#!/bin/bash + +case "${OP_Maintainer},${OP_BRANCH}" in +coolsnowwolf,master) + AddPackage git other luci-app-usb3disable rufengsuixing +;; +esac diff --git a/CustomPackages/d-team_newifi-d2 b/CustomPackages/d-team_newifi-d2 index 318485a..cff5622 100755 --- a/CustomPackages/d-team_newifi-d2 +++ b/CustomPackages/d-team_newifi-d2 @@ -1,2 +1,8 @@ -git other luci-app-usb3disable rufengsuixing -svn package/kernel mt76 openwrt/openwrt/trunk/package/kernel \ No newline at end of file +#!/bin/bash + +case "${OP_Maintainer},${OP_BRANCH}" in +coolsnowwolf,master) + AddPackage git other luci-app-usb3disable rufengsuixing + # AddPackage svn package/kernel mt76 openwrt/openwrt/trunk/package/kernel +;; +esac diff --git a/CustomPackages/x86_64 b/CustomPackages/x86_64 index 1341ab1..c4d0e98 100755 --- a/CustomPackages/x86_64 +++ b/CustomPackages/x86_64 @@ -1,2 +1,8 @@ -git other openwrt-passwall xiaorouji main -git other luci-app-shutdown Hyy2001X \ No newline at end of file +#!/bin/bash + +case "${OP_Maintainer},${OP_BRANCH}" in +coolsnowwolf,master) + AddPackage git other openwrt-passwall xiaorouji main + AddPackage git other luci-app-shutdown Hyy2001X +;; +esac