From 9f471ccd2578ee91d3ce3dbadc2d522e9d2b02fe Mon Sep 17 00:00:00 2001 From: zhao Date: Sun, 2 Feb 2025 15:57: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 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/ZeroWrt b/bin/ZeroWrt index 5ae9f95..7ad36b6 100644 --- a/bin/ZeroWrt +++ b/bin/ZeroWrt @@ -312,9 +312,9 @@ one_click_setup() { # AdguardHome 设置 cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml - sed -i 's/cache_size: .*/cache_size: 0/' /etc/AdGuardHome.yaml - sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml - sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dnslist.yaml/' /etc/AdGuardHome.yaml + sed -i 's/cache_size: .*/cache_size: 0/' /etc/config/AdGuardHome.yaml + sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/config/AdGuardHome.yaml + sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dnslist.yaml/' /etc/config/AdGuardHome.yaml uci set AdGuardHome.AdGuardHome.enabled='1' uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream' uci commit AdGuardHome @@ -427,9 +427,9 @@ one_click_setup() { # 配置 AdGuardHome cp /etc/config/default_AdGuardHome /etc/config/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 - sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml + sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-mosdns.yaml/' /etc/config/AdGuardHome.yaml + sed -i 's/cache_size: .*/cache_size: 0/' /etc/config/AdGuardHome.yaml + sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/config/AdGuardHome.yaml uci set AdGuardHome.AdGuardHome.enabled='1' uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream' uci commit AdGuardHome @@ -512,7 +512,7 @@ one_click_setup() { uci set AdGuardHome.AdGuardHome.enabled='0' uci set AdGuardHome.AdGuardHome.redirect='none' cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml - sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dns.yaml/' /etc/AdGuardHome.yaml + sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dns.yaml/' /etc/config/AdGuardHome.yaml uci commit AdGuardHome /etc/init.d/AdGuardHome restart # 恢复 passwall