diff options
author | mboelen <michael@cisofy.com> | 2016-03-17 18:40:53 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-03-17 18:40:53 +0300 |
commit | a33b3c828fc17685c2faa90f14928777c76d193c (patch) | |
tree | e8a9bc55659432621e011f7603d6f2d4b9b129b7 | |
parent | 7adf2425a68240f5d9cccb9167c1ef578b7e3afa (diff) |
Check system manager and allow init as option in /proc/1/cmdline
-rw-r--r-- | include/tests_boot_services | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |