From feb438a93cb66d4c9a96a32f8f87163e57d1c187 Mon Sep 17 00:00:00 2001 From: r0fus0d Date: Tue, 10 Oct 2023 13:24:33 +0800 Subject: [PATCH] support debian 12(2023/10/10) --- f8x | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/f8x b/f8x index f01ca492..d3cc11da 100644 --- a/f8x +++ b/f8x @@ -940,8 +940,9 @@ Sys_Version(){ Linux_Version_Name="wheezy" ;; *) - Echo_ERROR "Unknown Debian Codename" - exit 1 + Echo_ALERT "Unknown Debian Codename, attempting automatic adaptation." + Linux_Version_Num=$(grep -Po '(?<=VERSION_ID=")\d+' /etc/*-release) + Linux_Version_Name=$(cat /etc/*-release | awk -F "=" '/VERSION_CODENAME/ {print $2}') ;; esac ;; @@ -982,6 +983,10 @@ Sys_Version(){ *"Fedora"*|*"fedora"*) Linux_Version="Fedora" case $(cat /etc/*-release | head -n 1) in + *"release 38"*) + Linux_Version_Num="38" + Linux_Version_Name="" + ;; *"release 37"*) Linux_Version_Num="37" Linux_Version_Name="" @@ -1007,8 +1012,9 @@ Sys_Version(){ Linux_Version_Name="" ;; *) - Echo_ERROR "Unknown Fedora Codename" - exit 1 + Echo_ALERT "Unknown Fedora Codename, attempting automatic adaptation." + Linux_Version_Num=$(cat /etc/*-release | awk -F "=" '/VERSION_ID/ {print $2}') + Linux_Version_Name="" ;; esac ;;