Small improvements with xorriso_broker.sh
This commit is contained in:
parent
5d4e9d3f89
commit
e3a7fd9cbc
@ -130,6 +130,7 @@ then
|
||||
# xorriso is not started yet
|
||||
|
||||
# Check for xorriso version which knows command -named_pipe_loop
|
||||
echo "Checking xorriso version ..." >&2
|
||||
xorriso_version_req="1.3.2"
|
||||
version=$("$xorriso" -version | grep '^xorriso version' |
|
||||
sed -e 's/^xorriso version : //')
|
||||
@ -144,8 +145,26 @@ then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
mknod "$cmd_pipe" p
|
||||
mknod "$result_pipe" p
|
||||
if mknod "$cmd_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 \
|
||||
-named_pipe_loop cleanup:buffered "$cmd_pipe" "$result_pipe" "-" \
|
||||
>&2 &
|
||||
|
Loading…
Reference in New Issue
Block a user