From cd7c4f8234f773705f00cf9017894046e9d7f6e5 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sat, 17 Jul 2021 00:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E5=8C=85=E6=B7=BB=E5=8A=A0=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomPackages/Common | 28 +++++++++++++++++++++------- CustomPackages/asus_rt-acrh17 | 8 +++++++- CustomPackages/d-team_newifi-d2 | 10 ++++++++-- CustomPackages/x86_64 | 10 ++++++++-- 4 files changed, 44 insertions(+), 12 deletions(-) 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