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:
authorThomas Sjögren <konstruktoid@users.noreply.github.com>2020-10-19 13:38:59 +0300
committerThomas Sjögren <konstruktoid@users.noreply.github.com>2020-10-19 13:38:59 +0300
commit68e8ef862e4da525efc1b157e74e8789a50b32e8 (patch)
treeebac900f8dd9c4502e65c52e351ff09647c45d99 /include/osdetection
parentf0ded6c2a3408d361145952234bfcd306eae0d23 (diff)
mageia got /etc/os-release
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/osdetection b/include/osdetection
index 441ef6bd..34667ca8 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -212,6 +212,12 @@
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 '"')
;;
+ "mageia")
+ LINUX_VERSION="Mageia"
+ OS_NAME="Mageia"
+ 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"
@@ -396,13 +402,6 @@
LINUX_VERSION="Fedora"
fi
- # Mageia (/etc/redhat-release -> /etc/mageia-release link)
- FIND=$(grep "Mageia" /etc/mageia-release)
- if [ ! "${FIND}" = "" ]; then
- OS_FULLNAME=$(grep "^Mageia" /etc/mageia-release)
- OS_VERSION=$(grep "^Mageia" /etc/mageia-release | awk '{ if ($2=="release") { print $3 } }')
- LINUX_VERSION="Mageia"
- fi
# Oracle Enterprise Linux
FIND=$(grep "Enterprise Linux Enterprise Linux Server" /etc/redhat-release)