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>2017-08-19 11:50:53 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-08-19 11:50:53 +0300
commit06491a5b4fb4121123f36fd1e81089285abd2833 (patch)
tree9b69fed5005187ae541c26fb489fc31644961ce3
parent1190efac2bafe58ba84ed348a54d37355384f059 (diff)
Linux Mint detection
-rw-r--r--include/osdetection10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index 0d19782e..44a0947d 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -219,6 +219,16 @@
# Ubuntu test (optional) $(grep "[Uu]buntu" /proc/version)
fi
+ # Override for Linux Mint, as that is initially detected as Debian or Ubuntu
+ if [ -x /usr/bin/lsb_release ]; then
+ FIND=$(lsb_release --id | awk '{ print $2 }')
+ if [ "${FIND}" = "LinuxMint" ]; then
+ LINUX_VERSION="Linux Mint"
+ OS_VERSION=$(lsb_release --release | awk '{ print $2 }')
+ OS_FULLNAME="Linux Mint ${OS_VERSION}"
+ fi
+ fi
+
# E-smith
if [ -e "/etc/e-smith-release" ]; then OS_FULLNAME=$(cat /etc/e-smith-release); fi