Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-06-28 15:58:23 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-06-28 15:58:23 +0300
commitea38da3439efca23bebc859679b7a63a7ec36450 (patch)
tree887b686bcb4c48270e8aa3be7f0002283e69171a /include/osdetection
parent0eaa9bc9c5f42ff5da396ca0f2eef0d05e1eef87 (diff)
Add /etc/os-release detection of Linux Mint
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index ac099bde..783662ad 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -194,6 +194,12 @@
OS_NAME="Kali Linux"
OS_VERSION="Rolling release"
;;
+ "linuxmint")
+ LINUX_VERSION="Linux Mint"
+ OS_NAME="Linux Mint"
+ 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 '"')
+ ;;
"manjaro")
LINUX_VERSION="Manjaro"
OS_FULLNAME="Manjaro Linux"