增加 aarch64_generic 兼容性

This commit is contained in:
2025-12-17 14:05:36 +08:00
parent 58e800c823
commit bca53dd343
4 changed files with 26 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
arch all 1 arch all 1
arch noarch 1 arch noarch 1
arch aarch64_cortex-a53 5 arch aarch64_generic 5
arch aarch64_cortex-a53_neon-vfpv4 10 arch aarch64_cortex-a53 10
arch aarch64_cortex-a53_neon-vfpv4 15

View File

@@ -32,6 +32,14 @@ setup_base_init() {
} }
# 调整架构 兼容aarch64_generic
add_arch() {
if ! wget -O /etc/opkg/arch.conf $HTTP_HOST/mtarch/arch.conf; then
echo "下载 arch.conf 失败,脚本终止。"
exit 1
fi
}
## 安装应用商店和主题 ## 安装应用商店和主题
install_istore_os_style() { install_istore_os_style() {
##设置Argon 紫色主题 ##设置Argon 紫色主题
@@ -577,6 +585,7 @@ while true; do
case $choice in case $choice in
1) 1)
add_arch
if [[ "$gl_name" == *3000* ]]; then if [[ "$gl_name" == *3000* ]]; then
# 设置风扇工作温度 # 设置风扇工作温度
setup_cpu_fans setup_cpu_fans

View File

@@ -32,6 +32,15 @@ setup_base_init() {
} }
# 调整架构 兼容aarch64_generic
add_arch() {
if ! wget -O /etc/opkg/arch.conf $HTTP_HOST/mtarch/arch.conf; then
echo "下载 arch.conf 失败,脚本终止。"
exit 1
fi
}
## 安装应用商店和主题 ## 安装应用商店和主题
install_istore_os_style() { install_istore_os_style() {
##设置Argon 紫色主题 ##设置Argon 紫色主题
@@ -642,6 +651,7 @@ while true; do
case $choice in case $choice in
1) 1)
add_arch
if [[ "$gl_name" == *3000* ]]; then if [[ "$gl_name" == *3000* ]]; then
# 设置风扇工作温度 # 设置风扇工作温度
setup_cpu_fans setup_cpu_fans

4
mtarch/arch.conf Normal file
View File

@@ -0,0 +1,4 @@
arch all 1
arch noarch 1
arch aarch64_generic 10
arch aarch64_cortex-a53 15