Skip to content

Commit

Permalink
support debian 12(2023/10/10)
Browse files Browse the repository at this point in the history
  • Loading branch information
No-Github committed Oct 10, 2023
1 parent 88ca893 commit feb438a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions f8x
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down Expand Up @@ -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=""
Expand All @@ -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
;;
Expand Down

0 comments on commit feb438a

Please sign in to comment.