From b6bd9bfbfd4954880792f29e795f583e1303f6b8 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Tue, 20 May 2025 20:05:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- be3600.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/be3600.sh b/be3600.sh index aa0343c..953c146 100644 --- a/be3600.sh +++ b/be3600.sh @@ -326,16 +326,18 @@ toggle_adguardhome() { if [ "$status" -eq 1 ]; then echo "Disabling AdGuardHome..." - uci set adguardhome.config.enabled='0' - uci commit adguardhome - /etc/init.d/adguardhome disable - /etc/init.d/adguardhome stop + uci set adguardhome.config.enabled='0' >/dev/null 2>&1 + uci commit adguardhome >/dev/null 2>&1 + /etc/init.d/adguardhome disable >/dev/null 2>&1 + /etc/init.d/adguardhome stop >/dev/null 2>&1 + green "AdGuardHome 已关闭" else echo "Enabling AdGuardHome..." - uci set adguardhome.config.enabled='1' - uci commit adguardhome - /etc/init.d/adguardhome enable - /etc/init.d/adguardhome start + uci set adguardhome.config.enabled='1' >/dev/null 2>&1 + uci commit adguardhome >/dev/null 2>&1 + /etc/init.d/adguardhome enable >/dev/null 2>&1 + /etc/init.d/adguardhome start >/dev/null 2>&1 + green "AdGuardHome 已开启 访问 http://192.168.8.1:3000" fi }