diff options
-rw-r--r-- | include/tests_boot_services | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services index 274fd2d3..bce0bd02 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -71,8 +71,10 @@ case ${OS} in "Linux") if [ -f /proc/1/cmdline ]; then - FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | ${TRBINARY} '\0' ' ' | ${SEDBINARY} 's/ $//' | ${AWKBINARY} '{ print $1 }') - LogText "Result: cmdline found = ${FILENAME}" + OUTPUT=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | ${TRBINARY} '\0' ' ' | ${SEDBINARY} 's/ $//') + LogText "Result: cmdline found = ${OUTPUT}" + FILENAME=$(echo "${OUTPUT}" | ${AWKBINARY} '{print $1}') + LogText "Result: file on disk = ${FILENAME}" ISFILE=$(echo ${FILENAME} | ${GREPBINARY} "^/") if [ ! -z "${ISFILE}" ]; then if [ -L ${ISFILE} ]; then |