From 095c36269e4f5659b686384b424e97db6aa3d875 Mon Sep 17 00:00:00 2001 From: Fabian Wahle Date: Fri, 14 Mar 2025 22:32:18 +0100 Subject: [PATCH] Add support for Summit Linux (ID: cm1sd) in OS detection Resolves issue #1140 by adding Summit Linux detection based on ID=cm1sd from /etc/os-release. --- include/osdetection | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/osdetection b/include/osdetection index 7a2e4bf1..429898fd 100644 --- a/include/osdetection +++ b/include/osdetection @@ -226,6 +226,12 @@ OS_REDHAT_OR_CLONE=1 OS_VERSION="Rolling release" ;; + "cm1sd") + LINUX_VERSION="Summit Linux" + OS_NAME="Summit Linux" + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "cloudlinux") LINUX_VERSION="CloudLinux" OS_NAME="CloudLinux"