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>2019-09-03 11:06:26 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-09-03 11:06:26 +0300
commit9041517e2a53ea137a2a2c0f570bc5dc0501c8e9 (patch)
treee18625139684acb43a6f05dace181a6272d0cff1 /include/osdetection
parent0d58ee77a05d15675bc011244c600293a6ec3cbc (diff)
Added Debian and standardized others
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection
index e1f55350..3e4b8610 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -173,9 +173,17 @@
OS_NAME="CoreOS Linux"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;;
+ "debian")
+ LINUX_VERSION="Debian"
+ OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ 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 '"')
+ OS_NAME="Debian"
+ ;;
"manjaro")
LINUX_VERSION="Manjaro"
OS_FULLNAME="Manjaro Linux"
+ OS_NAME="Manjaro"
OS_VERSION="Rolling release"
;;
"opensuse-tumbleweed")
@@ -195,7 +203,8 @@
LINUX_VERSION="Ubuntu"
OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
- OS_NAME="Ubuntu Linux"
+ OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+ OS_NAME="Ubuntu"
;;
"rhel")
LINUX_VERSION="RHEL"