From 4ee647dfd69cea24ed1a6d54f98bd512d9b50e65 Mon Sep 17 00:00:00 2001 From: zhao Date: Tue, 25 Feb 2025 11:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20bin/ZeroWrt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- bin/ZeroWrt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ZeroWrt b/bin/ZeroWrt index eab10d4..a75c021 100644 --- a/bin/ZeroWrt +++ b/bin/ZeroWrt @@ -311,6 +311,7 @@ one_click_setup() { /etc/init.d/smartdns restart # AdguardHome 设置 + chmod +x /usr/share/AdGuardHome/addhost.sh cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml sed -i 's/cache_size: .*/cache_size: 0/' /etc/AdGuardHome.yaml sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml @@ -426,6 +427,7 @@ one_click_setup() { /etc/init.d/mosdns restart # 配置 AdGuardHome + chmod +x /usr/share/AdGuardHome/addhost.sh cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-mosdns.yaml/' /etc/AdGuardHome.yaml sed -i 's/cache_size: .*/cache_size: 0/' /etc/AdGuardHome.yaml @@ -509,6 +511,7 @@ one_click_setup() { cp /etc/config/default_mosdns /etc/config/mosdns /etc/init.d/mosdns restart # 恢复 adguardhome + chmod +x /usr/share/AdGuardHome/addhost.sh uci set AdGuardHome.AdGuardHome.enabled='0' uci set AdGuardHome.AdGuardHome.redirect='none' cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml