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>2020-11-13 17:58:20 +0300
committerGitHub <noreply@github.com>2020-11-13 17:58:20 +0300
commit6026b82e142d907fafcc5b6a49b3d83884bee650 (patch)
tree6a4c4d9cf82fd7880adf7145a791008093a45418 /include
parentf8178767374219a534513d447563b3cbdab5566b (diff)
parent3f83b9ac86e5602dd57457230a1541f8082f25a4 (diff)
Merge pull request #1073 from Varbin/1040-1068-os-detection
Add NixOS and IPFire
Diffstat (limited to 'include')
-rw-r--r--include/osdetection11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index b52ab188..26a95570 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"
@@ -230,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"