更新 bin/ ZeroWrt.backup
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
cfcd926bfb
commit
e10c7c2752
@ -417,11 +417,11 @@ one_click_setup() {
|
|||||||
/etc/init.d/mosdns restart
|
/etc/init.d/mosdns restart
|
||||||
|
|
||||||
# 配置 AdGuardHome
|
# 配置 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/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_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
|
uci commit AdGuardHome
|
||||||
/etc/init.d/AdGuardHome restart
|
/etc/init.d/AdGuardHome restart
|
||||||
|
|
||||||
@ -497,11 +497,15 @@ one_click_setup() {
|
|||||||
cp /etc/config/default_mosdns /etc/config/mosdns
|
cp /etc/config/default_mosdns /etc/config/mosdns
|
||||||
/etc/init.d/mosdns restart
|
/etc/init.d/mosdns restart
|
||||||
# 恢复 adguardhome
|
# 恢复 adguardhome
|
||||||
|
|
||||||
cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml
|
cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml
|
||||||
/etc/init.d/AdGuardHome restart
|
/etc/init.d/AdGuardHome restart
|
||||||
# 恢复 passwall
|
# 恢复 passwall
|
||||||
|
cp /etc/config/default_passwall /etc/config/passwall
|
||||||
|
/etc/init.d/passwall restart
|
||||||
# 恢复 openclash
|
# 恢复 openclash
|
||||||
|
cp /etc/config/default_openclash /etc/config/openclash
|
||||||
|
uci commit openclash
|
||||||
|
/etc/init.d/openclash restart
|
||||||
|
|
||||||
0)
|
0)
|
||||||
show_menu
|
show_menu
|
||||||
|
Loading…
Reference in New Issue
Block a user