From f653b86a42ceecec5e28c04758d86c77c7308ba7 Mon Sep 17 00:00:00 2001 From: OPPEN321 Date: Fri, 7 Nov 2025 20:23:11 +0800 Subject: [PATCH] Update build.sh --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 9960dc1..e2288e7 100644 --- a/build.sh +++ b/build.sh @@ -695,9 +695,9 @@ private_source_packaging() { echo echo -e "${YELLOW_COLOR}⟳ 正在获取内核版本信息...${RESET}" - get_kernel_version=$(curl -s "$mirror/tags/kernel-6.12") + get_kernel_version=$(cat include/kernel-6.12) kmod_hash=$(echo -e "$get_kernel_version" | awk -F'HASH-' '{print $2}' | awk '{print $1}' | tail -1 | md5sum | awk '{print $1}') - kmodpkg_name=$(echo $(echo -e "$get_kernel_version" | awk -F'HASH-' '{print $2}' | awk '{print $1}')~${kmod_hash}-r1) + kmodpkg_name=$(echo $(echo -e "$get_kernel_version" | awk -F'HASH-' '{print $2}' | awk '{print $1}')~$(echo $kmod_hash)-r1) echo -e "${GREEN_COLOR}✔ 生成包名:${RESET}${BOLD}${CYAN_COLOR}${kmodpkg_name}${RESET}" echo