更新 bin/ZeroWrt
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
4030bdc4f3
commit
28bf7973b6
20
bin/ZeroWrt
20
bin/ZeroWrt
@ -311,10 +311,10 @@ one_click_setup() {
|
||||
/etc/init.d/smartdns restart
|
||||
|
||||
# AdguardHome 设置
|
||||
cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml
|
||||
sed -i 's/cache_size: .*/cache_size: 0/' /etc/config/AdGuardHome.yaml
|
||||
sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/config/AdGuardHome.yaml
|
||||
sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dnslist.yaml/' /etc/config/AdGuardHome.yaml
|
||||
cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml
|
||||
sed -i 's/cache_size: .*/cache_size: 0/' /etc/AdGuardHome.yaml
|
||||
sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml
|
||||
sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dnslist.yaml/' /etc/AdGuardHome.yaml
|
||||
uci set AdGuardHome.AdGuardHome.enabled='1'
|
||||
uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream'
|
||||
uci commit AdGuardHome
|
||||
@ -426,10 +426,10 @@ one_click_setup() {
|
||||
/etc/init.d/mosdns restart
|
||||
|
||||
# 配置 AdGuardHome
|
||||
cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml
|
||||
sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-mosdns.yaml/' /etc/config/AdGuardHome.yaml
|
||||
sed -i 's/cache_size: .*/cache_size: 0/' /etc/config/AdGuardHome.yaml
|
||||
sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/config/AdGuardHome.yaml
|
||||
cp /etc/config/default_AdGuardHome /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/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml
|
||||
uci set AdGuardHome.AdGuardHome.enabled='1'
|
||||
uci set AdGuardHome.AdGuardHome.redirect='dnsmasq-upstream'
|
||||
uci commit AdGuardHome
|
||||
@ -511,8 +511,8 @@ one_click_setup() {
|
||||
# 恢复 adguardhome
|
||||
uci set AdGuardHome.AdGuardHome.enabled='0'
|
||||
uci set AdGuardHome.AdGuardHome.redirect='none'
|
||||
cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml
|
||||
sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dns.yaml/' /etc/config/AdGuardHome.yaml
|
||||
cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml
|
||||
sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dns.yaml/' /etc/AdGuardHome.yaml
|
||||
uci commit AdGuardHome
|
||||
/etc/init.d/AdGuardHome restart
|
||||
# 恢复 passwall
|
||||
|
Loading…
Reference in New Issue
Block a user