From 28bf7973b63ae5a2047b2cc65a546c7f0862ecfa Mon Sep 17 00:00:00 2001 From: zhao Date: Tue, 4 Feb 2025 23:49:31 +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 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/ZeroWrt b/bin/ZeroWrt index 7ad36b6..972bcee 100644 --- a/bin/ZeroWrt +++ b/bin/ZeroWrt @@ -311,10 +311,10 @@ one_click_setup() { /etc/init.d/smartdns restart # AdguardHome 设置 - cp /etc/config/default_AdGuardHome /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 - sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dnslist.yaml/' /etc/config/AdGuardHome.yaml + 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 + sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dnslist.yaml/' /etc/AdGuardHome.yaml uci set AdGuardHome.AdGuardHome.enabled='1' uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream' uci commit AdGuardHome @@ -426,10 +426,10 @@ one_click_setup() { /etc/init.d/mosdns restart # 配置 AdGuardHome - cp /etc/config/default_AdGuardHome /etc/config/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 + 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 + sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml uci set AdGuardHome.AdGuardHome.enabled='1' uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream' uci commit AdGuardHome @@ -511,8 +511,8 @@ one_click_setup() { # 恢复 adguardhome 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/config/AdGuardHome.yaml + cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml + sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dns.yaml/' /etc/AdGuardHome.yaml uci commit AdGuardHome /etc/init.d/AdGuardHome restart # 恢复 passwall