更新 bin/ ZeroWrt.backup

Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
zhao 2025-01-24 19:24:03 +08:00
parent cfcd926bfb
commit e10c7c2752

View File

@ -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