From 52cef0ed87aca64e22bc692da35addb82ef81532 Mon Sep 17 00:00:00 2001 From: pyllyukko Date: Tue, 8 Oct 2019 20:19:30 +0300 Subject: [PATCH] Slackware Linux OS detection --- include/osdetection | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/osdetection b/include/osdetection index 3e4b8610..db7b9e92 100644 --- a/include/osdetection +++ b/include/osdetection @@ -214,6 +214,13 @@ OS_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}" OS_REDHAT_OR_CLONE=1 ;; + "slackware") + LINUX_VERSION="Slackware" + OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_NAME="Slackware Linux" + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; *) ReportException "OS Detection" "Unknown OS found in /etc/os-release" ;;