Small improvements with xorriso_broker.sh

This commit is contained in:
Thomas Schmitt 2015-11-22 15:02:41 +00:00
parent 4db3a7db18
commit 76385a5211

View File

@ -130,6 +130,7 @@ then
# xorriso is not started yet # xorriso is not started yet
# Check for xorriso version which knows command -named_pipe_loop # Check for xorriso version which knows command -named_pipe_loop
echo "Checking xorriso version ..." >&2
xorriso_version_req="1.3.2" xorriso_version_req="1.3.2"
version=$("$xorriso" -version | grep '^xorriso version' | version=$("$xorriso" -version | grep '^xorriso version' |
sed -e 's/^xorriso version : //') sed -e 's/^xorriso version : //')
@ -144,8 +145,26 @@ then
exit 2 exit 2
fi fi
mknod "$cmd_pipe" p if mknod "$cmd_pipe" p
mknod "$result_pipe" p then
echo "Created named pipe for xorriso commands: $cmd_pipe" >&2
else
echo "Failed to create named pipe for xorriso commands: $cmd_pipe" >&2
exit 3
fi
if mknod "$result_pipe" p
then
echo "Created named pipe for xorriso result channel: $result_pipe" >&2
else
echo \
"Failed to create named pipe for xorriso result channel: $result_pipe" >&2
if rm "$cmd_pipe"
then
echo "Removed named pipe for xorriso commands: $cmd_pipe" >&2
fi
exit 3
fi
echo "Starting xorriso process ..." >&2
"$xorriso" -abort_on NEVER -for_backup \ "$xorriso" -abort_on NEVER -for_backup \
-named_pipe_loop cleanup:buffered "$cmd_pipe" "$result_pipe" "-" \ -named_pipe_loop cleanup:buffered "$cmd_pipe" "$result_pipe" "-" \
>&2 & >&2 &