From a33b3c828fc17685c2faa90f14928777c76d193c Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 17 Mar 2016 16:40:53 +0100 Subject: [PATCH] Check system manager and allow init as option in /proc/1/cmdline --- 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 d4d4494f..1a225cc3 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -70,7 +70,7 @@ case ${OS} in "Linux") if [ -f /proc/1/cmdline ]; then - FIND=`awk '/^\// { print $1 }' /proc/1/cmdline` + FIND=`awk '/(^\/|init)/ { print $1 }' /proc/1/cmdline` if [ ! "${FIND}" = "" ]; then SHORTNAME=`echo ${FIND} | awk -F/ '{ print $NF }'` LogText "Found: ${SHORTNAME}"