From 538e13a5acae2ff16ab015a10958fbdaf38f8ef3 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Fri, 3 Apr 2026 09:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=88=B0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=E8=BD=AF=E4=BB=B6=E6=BA=90=20=E9=80=82=E7=94=A8?= =?UTF-8?q?=E4=BA=8EMT3000=20OP24=E5=9B=BA=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gl-inet-op24.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gl-inet-op24.sh b/gl-inet-op24.sh index 8270f32..481f95a 100644 --- a/gl-inet-op24.sh +++ b/gl-inet-op24.sh @@ -38,12 +38,16 @@ add_arch() { echo "下载 arch.conf 失败,脚本终止。" exit 1 fi +} - if ! wget -O /etc/opkg/distfeeds.conf $HTTP_HOST/mt-3000/distfeeds-24.conf; then +# 切换到阿里云软件源 适用于MT3000 OP24固件 +change_opkg_source() { + if [[ "$gl_name" == *3000* ]]; then + if ! wget -O /etc/opkg/distfeeds.conf $HTTP_HOST/mt-3000/distfeeds-24.conf; then echo "换源失败,脚本终止。" exit 1 + fi fi - } ## 安装应用商店和主题 @@ -591,6 +595,7 @@ while true; do 1) add_arch + change_opkg_source if [[ "$gl_name" == *3000* ]]; then # 设置风扇工作温度 setup_cpu_fans