diff options
author | pyllyukko <pyllyukko@maimed.org> | 2019-10-08 20:19:30 +0300 |
---|---|---|
committer | pyllyukko <pyllyukko@maimed.org> | 2019-10-08 20:19:30 +0300 |
commit | 52cef0ed87aca64e22bc692da35addb82ef81532 (patch) | |
tree | f88b3046b9116dc625e2bf29d94461d3808e0341 /include/osdetection | |
parent | 52e1231433eca258d868c6989cf02f26f3870146 (diff) |
Slackware Linux OS detection
Diffstat (limited to 'include/osdetection')
-rw-r--r-- | include/osdetection | 7 |
1 files changed, 7 insertions, 0 deletions
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" ;; |