mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1073 from Varbin/1040-1068-os-detection
Add NixOS and IPFire
This commit is contained in:
commit
6026b82e14
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue