切换到阿里云软件源 适用于MT3000 OP24固件

This commit is contained in:
2026-04-03 09:29:14 +08:00
parent 4fd46ba2ca
commit 538e13a5ac

View File

@@ -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