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:
-rw-r--r--include/osdetection7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection
index aaddc1b4..91953591 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -129,6 +129,11 @@
OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}')
if [ ! -z "${OS_ID}" ]; then
case ${OS_ID} in
+ "arch")
+ LINUX_VERSION="Arch Linux"
+ OS_FULLNAME="Arch Linux"
+ OS_VERSION="Unknown"
+ ;;
"coreos")
LINUX_VERSION="CoreOS"
OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
@@ -160,7 +165,7 @@
fi
# Arch Linux
- if [ -e "/etc/arch-release" ]; then
+ if [ -z "${OS_FULLNAME}" -a -e "/etc/arch-release" ]; then
OS_FULLNAME="Arch Linux"
OS_VERSION="Unknown"
LINUX_VERSION="Arch Linux"