[更新] 优化 定制/龙架构/loongjet.sh 模块的新旧世界识别模块
This commit is contained in:
parent
21b5b97c1f
commit
cd3d9f0c76
|
@ -19,7 +19,6 @@ TMP_ROOT=/tmp/xunmi
|
|||
|
||||
# 读取系统架构和内核信息
|
||||
readonly UNAME_M="$(uname -m)"
|
||||
readonly UNAME_R="$(uname -r)"
|
||||
WorldType="新世界"
|
||||
|
||||
# 加载系统信息
|
||||
|
@ -84,9 +83,6 @@ exist_file() {
|
|||
# 识别架构
|
||||
Check_Arch() {
|
||||
case $UNAME_M in
|
||||
# *x86_64*)
|
||||
# TARGET_ARCH="amd64"
|
||||
# ;;
|
||||
*loongarch64*)
|
||||
TARGET_ARCH="loong64"
|
||||
;;
|
||||
|
@ -114,7 +110,8 @@ Check_Distribution() {
|
|||
notice="我们尚未在此发行版上进行测试,默认使用新世界文件替换"
|
||||
;;
|
||||
esac
|
||||
if [[ $UNAME_R =~ ^4.19.0-.+ ]]; then
|
||||
WorldNum=$(hexdump -s 48 -C /usr/bin/sh | head -n 1 | awk '{print $2}')
|
||||
if [[ ${WorldNum} == "03" ]]; then
|
||||
WorldType="旧世界"
|
||||
fi
|
||||
Show ${sType} "检测到 ${ReleaseName} 发行版系统, 根据内核版本推断属于 -> ${WorldType} <- 系统 "
|
||||
|
|
Loading…
Reference in New Issue
Block a user