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