更新 bin/ZeroWrt

Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
zhao 2025-01-25 01:19:55 +08:00
parent 995236952e
commit 303a029c1f

View File

@ -429,7 +429,7 @@ one_click_setup() {
cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml 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/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/cache_size: .*/cache_size: 0/' /etc/AdGuardHome.yaml
sed -i 's|upstream_dns_file: ""|upstream_dns_file: "/etc/AdGuardHome-mosdns.yaml"|' /etc/AdGuardHome.yaml sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml
uci set AdGuardHome.AdGuardHome.enabled='1' uci set AdGuardHome.AdGuardHome.enabled='1'
uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream' uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream'
uci commit AdGuardHome uci commit AdGuardHome