revert 4ee647dfd6
revert 更新 bin/ZeroWrt Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
4ee647dfd6
commit
74d6c4af7f
@ -311,7 +311,6 @@ one_click_setup() {
|
|||||||
/etc/init.d/smartdns restart
|
/etc/init.d/smartdns restart
|
||||||
|
|
||||||
# AdguardHome 设置
|
# AdguardHome 设置
|
||||||
chmod +x /usr/share/AdGuardHome/addhost.sh
|
|
||||||
cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml
|
cp /etc/config/default_AdGuardHome /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_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml
|
sed -i 's/upstream_mode: .*/upstream_mode: parallel/' /etc/AdGuardHome.yaml
|
||||||
@ -427,7 +426,6 @@ one_click_setup() {
|
|||||||
/etc/init.d/mosdns restart
|
/etc/init.d/mosdns restart
|
||||||
|
|
||||||
# 配置 AdGuardHome
|
# 配置 AdGuardHome
|
||||||
chmod +x /usr/share/AdGuardHome/addhost.sh
|
|
||||||
cp /etc/config/default_AdGuardHome /etc/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/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
|
||||||
@ -511,7 +509,6 @@ 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
|
||||||
chmod +x /usr/share/AdGuardHome/addhost.sh
|
|
||||||
uci set AdGuardHome.AdGuardHome.enabled='0'
|
uci set AdGuardHome.AdGuardHome.enabled='0'
|
||||||
uci set AdGuardHome.AdGuardHome.redirect='none'
|
uci set AdGuardHome.AdGuardHome.redirect='none'
|
||||||
cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml
|
cp /etc/config/default_AdGuardHome /etc/AdGuardHome.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user