Merge pull request #1073 from Varbin/1040-1068-os-detection

Add NixOS and IPFire
This commit is contained in:
Michael Boelen 2020-11-13 15:58:20 +01:00 committed by GitHub
commit 6026b82e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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"