Added Zorin OS detection

This commit is contained in:
Michael Boelen 2020-10-17 13:15:06 +02:00
parent 760460528b
commit 791800f95d
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,9 @@
## Lynis 3.0.2 (not released yet)
### Added
- Detection of Zorin OS
### Changed
- KRNL-5830 - Improved reboot test by ignoring known bad values

View File

@ -273,6 +273,13 @@
OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
OS_NAME="Ubuntu"
;;
"zorin")
LINUX_VERSION="Zorin OS"
OS_NAME="Zorin OS"
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 '"')
;;
*)
ReportException "OS Detection" "Unknown OS found in /etc/os-release - Please create issue on GitHub project page: ${PROGRAM_SOURCE}"
;;