From 9b02934339e7bf593de3fb8112e8a7e7d1ba1b1d Mon Sep 17 00:00:00 2001 From: pyllyukko Date: Thu, 6 Jun 2019 15:41:29 +0300 Subject: [PATCH] Detect BSD-style (rc.d) init in Linux systems --- include/tests_boot_services | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/tests_boot_services b/include/tests_boot_services index 5495938c..42b8dab1 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -96,7 +96,11 @@ ;; "init" | "initsplash") - SERVICE_MANAGER="SysV Init" + if [ -d ${ROOTDIR}etc/rc.d ]; then + SERVICE_MANAGER="bsdrc.d" + else + SERVICE_MANAGER="SysV Init" + fi ;; systemd) SERVICE_MANAGER="systemd"