From 95c70326021fb3f21b528164c8dd3ba2801e04fd Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 31 Jan 2025 20:39:58 +0100 Subject: [PATCH] boot: add more informations Signed-off-by: AuxXxilium --- files/initrd/opt/arc/boot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index 41e52894..a38f2d02 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -48,6 +48,8 @@ PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")" BUILDNUM="$(readConfigKey "buildnum" "${USER_CONFIG_FILE}")" SMALLNUM="$(readConfigKey "smallnum" "${USER_CONFIG_FILE}")" LKM="$(readConfigKey "lkm" "${USER_CONFIG_FILE}")" +KERNEL="$(readConfigKey "kernel" "${USER_CONFIG_FILE}")" +KVER="$(readConfigKey "platforms.${PLATFORM}.productvers.\"${PRODUCTVER}\".kver" "${P_FILE}")" CPU="$(echo $(cat /proc/cpuinfo 2>/dev/null | grep 'model name' | uniq | awk -F':' '{print $2}'))" RAMTOTAL="$(awk '/MemTotal:/ {printf "%.0f\n", $2 / 1024 / 1024 + 0.5}' /proc/meminfo 2>/dev/null)" VENDOR="$(dmesg 2>/dev/null | grep -i "DMI:" | head -1 | sed 's/\[.*\] DMI: //i')" @@ -83,7 +85,7 @@ if [ "${DSMINFO}" = "true" ]; then echo -e "Model: \033[1;37m${MODELID:-${MODEL}}\033[0m" echo -e "Platform: \033[1;37m${PLATFORM}\033[0m" echo -e "Version: \033[1;37m${PRODUCTVER} (${BUILDNUM}$([ ${SMALLNUM:-0} -ne 0 ] && echo "u${SMALLNUM}"))\033[0m" - echo -e "Kernel: \033[1;37m${KVER}\033[0m" + echo -e "Kernel: \033[1;37m${KVER} (${KERNEL}\033[0m" echo -e "LKM: \033[1;37m${LKM}\033[0m" echo fi