From 183af1d334ee6111f08d1e9d2539d959ef871c2f Mon Sep 17 00:00:00 2001 From: Simon Biewald Date: Thu, 12 Nov 2020 22:12:26 +0100 Subject: [PATCH 1/2] Add IPFire to osdetection Fixes cisofy/lynis#1040. Signed-off-by: Simon Biewald --- include/osdetection | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/osdetection b/include/osdetection index b52ab188..925beec2 100644 --- a/include/osdetection +++ b/include/osdetection @@ -207,6 +207,11 @@ OS_NAME="Gentoo Linux" OS_VERSION="Rolling release" ;; + "ipfire") + LINUX_VERSION="IPFire" + OS_NAME="IPFire" + OS_VERSION=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "kali") LINUX_VERSION="Kali" OS_NAME="Kali Linux" From 3f83b9ac86e5602dd57457230a1541f8082f25a4 Mon Sep 17 00:00:00 2001 From: Simon Biewald Date: Thu, 12 Nov 2020 22:56:31 +0100 Subject: [PATCH 2/2] Add NixOS to osdetection Fixes cisofy/lynis#1068. Signed-off-by: Simon Biewald --- include/osdetection | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/osdetection b/include/osdetection index 925beec2..26a95570 100644 --- a/include/osdetection +++ b/include/osdetection @@ -235,6 +235,12 @@ OS_NAME="Manjaro" OS_VERSION="Rolling release" ;; + "nixos") + LINUX_VERSION="NixOS" + OS_NAME="NixOS" + 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 '"') + ;; "ol") LINUX_VERSION="Oracle Linux" OS_NAME="Oracle Linux"