You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
541 B
30 lines
541 B
8 years ago
|
#!/bin/bash
|
||
|
ARGS="$@"
|
||
|
while [[ -n "$@" ]]; do
|
||
|
if [[ "${1:0:1}" != "-" ]]; then
|
||
|
if [[ -z "$volumepipe" ]]; then
|
||
|
volumepipe="$1"
|
||
|
elif [[ -z "$commandpipe" ]]; then
|
||
|
commandpipe="$1"
|
||
|
fi
|
||
|
fi
|
||
|
shift;
|
||
|
done
|
||
|
|
||
|
|
||
|
|
||
|
# volumepipe
|
||
|
if ! [[ -p "$volumepipe" ]]; then
|
||
|
rm -rf "$volumepipe"
|
||
|
mkfifo "$volumepipe"
|
||
|
fi
|
||
|
|
||
|
# volumecontrol
|
||
|
if ! [[ -p "$commandpipe" ]]; then
|
||
|
rm -rf "$commandpipe"
|
||
|
mkfifo "$commandpipe"
|
||
|
fi
|
||
|
|
||
|
eval set -- "$ARGS"
|
||
|
exec "$(dirname "${BASH_SOURCE[0]}")/daemon.py" "$@"
|