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