mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 22:04:39 +02:00
Merge pull request #777 from pyllyukko/osdetection-slackware
Slackware Linux OS detection
This commit is contained in:
commit
1f4092d8e0
@ -214,6 +214,13 @@
|
|||||||
OS_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"
|
OS_FULLNAME="${OS_NAME} ${OS_VERSION_FULL}"
|
||||||
OS_REDHAT_OR_CLONE=1
|
OS_REDHAT_OR_CLONE=1
|
||||||
;;
|
;;
|
||||||
|
"slackware")
|
||||||
|
LINUX_VERSION="Slackware"
|
||||||
|
OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||||
|
OS_NAME="Slackware Linux"
|
||||||
|
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"
|
ReportException "OS Detection" "Unknown OS found in /etc/os-release"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user