From e10c7c2752a79f9df28a0705962cdbb5b148a46e Mon Sep 17 00:00:00 2001 From: zhao Date: Fri, 24 Jan 2025 19:24:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20bin/=20ZeroWrt.backup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- bin/ ZeroWrt.backup | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/ ZeroWrt.backup b/bin/ ZeroWrt.backup index 1035167..f0501b1 100644 --- a/bin/ ZeroWrt.backup +++ b/bin/ ZeroWrt.backup @@ -417,11 +417,11 @@ one_click_setup() { /etc/init.d/mosdns restart # 配置 AdGuardHome - uci set AdGuardHome.AdGuardHome.enabled='1' - uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream' 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_dns_file: ""|upstream_dns_file: "/etc/AdGuardHome-mosdns.yaml"|' /etc/AdGuardHome.yaml + uci set AdGuardHome.AdGuardHome.enabled='1' + uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream' uci commit AdGuardHome /etc/init.d/AdGuardHome restart @@ -497,11 +497,15 @@ one_click_setup() { cp /etc/config/default_mosdns /etc/config/mosdns /etc/init.d/mosdns restart # 恢复 adguardhome - cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml /etc/init.d/AdGuardHome restart # 恢复 passwall + cp /etc/config/default_passwall /etc/config/passwall + /etc/init.d/passwall restart # 恢复 openclash + cp /etc/config/default_openclash /etc/config/openclash + uci commit openclash + /etc/init.d/openclash restart 0) show_menu