mirror of https://github.com/CISOfy/lynis.git
[BOOT-5104] added busybox to service managers
This commit is contained in:
parent
6e2f1552af
commit
4ad2ee4ba2
|
@ -89,6 +89,10 @@
|
|||
LogText "Found: ${SHORTNAME}"
|
||||
if [ "${SERVICE_MANAGER}" = "unknown" ]; then
|
||||
case ${SHORTNAME} in
|
||||
busybox)
|
||||
SERVICE_MANAGER="busybox"
|
||||
;;
|
||||
|
||||
"init" | "initsplash")
|
||||
SERVICE_MANAGER="SysV Init"
|
||||
;;
|
||||
|
@ -100,7 +104,6 @@
|
|||
;;
|
||||
*)
|
||||
CONTAINS_SYSTEMD=$(echo ${SHORTNAME} | ${GREPBINARY} "systemd")
|
||||
|
||||
if [ ! -z "${CONTAINS_SYSTEMD}" ]; then
|
||||
SERVICE_MANAGER="systemd"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue