From 630769377a14946b4725ba83d7858dd2085c7b45 Mon Sep 17 00:00:00 2001 From: nser77 <104022475+nser77@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:31:13 +0200 Subject: [PATCH 1/2] Update tests_boot_services --- include/tests_boot_services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_boot_services b/include/tests_boot_services index a9a926a09..ed54b3197 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -147,7 +147,7 @@ fi ;; "Solaris") - if [ -n "${ROOTDIR}usr/bin/svcs" ]; then + if [ -d "${ROOTDIR}usr/bin/svcs" ]; then SERVICE_MANAGER="SMF (svcs)" elif [ -d "${ROOTDIR}etc/init.d" ]; then SERVICE_MANAGER="SysV Init" From aba1d530d3996b95b585394af5a195ce0374ece9 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 29 Jan 2025 14:22:59 +0100 Subject: [PATCH 2/2] Update tests_boot_services As it is not a directory, we need to test if it is a file with executable bit set. --- include/tests_boot_services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_boot_services b/include/tests_boot_services index ed54b3197..8b5b4b4c6 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -147,7 +147,7 @@ fi ;; "Solaris") - if [ -d "${ROOTDIR}usr/bin/svcs" ]; then + if [ -x "${ROOTDIR}usr/bin/svcs" ]; then SERVICE_MANAGER="SMF (svcs)" elif [ -d "${ROOTDIR}etc/init.d" ]; then SERVICE_MANAGER="SysV Init"