diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2018-08-22 17:33:50 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2018-08-22 17:33:50 +0300 |
commit | b005effc32d86eb68bf93e7dfdd0c127252e3a18 (patch) | |
tree | 0ebfff2a48a44fa4474567d9ff28e2cfff995a03 /include/tests_boot_services | |
parent | 0f9698f2603f34d623ffeb37c0ea8e68a683ece0 (diff) |
[BOOT-5104] improved parsing parameters to init process
Diffstat (limited to 'include/tests_boot_services')
-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 3b0d3a2e..274fd2d3 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -71,7 +71,7 @@ case ${OS} in "Linux") if [ -f /proc/1/cmdline ]; then - FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | tr -d '\0') + FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | ${TRBINARY} '\0' ' ' | ${SEDBINARY} 's/ $//' | ${AWKBINARY} '{ print $1 }') LogText "Result: cmdline found = ${FILENAME}" ISFILE=$(echo ${FILENAME} | ${GREPBINARY} "^/") if [ ! -z "${ISFILE}" ]; then |