mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Add zeroconf/mdns support
This commit is contained in:
parent
aae15e3c90
commit
c53b19c039
6 changed files with 260 additions and 1 deletions
24
tools/avahi.sh
Executable file
24
tools/avahi.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
test -n "`which avahi-publish`"
|
||||
test -n "`which tail`"
|
||||
|
||||
PORT=$1
|
||||
TYPE=$2
|
||||
test -n "$PORT"
|
||||
test -n "$TYPE"
|
||||
|
||||
if test -n "$3"; then
|
||||
PARENT_PID=$3
|
||||
else
|
||||
PARENT_PID=$$
|
||||
fi
|
||||
|
||||
avahi-publish -s Ardour-$PARENT_PID "$TYPE" "$PORT" &
|
||||
CHILD_PID=$!
|
||||
|
||||
trap "kill -- $CHILD_PID" EXIT
|
||||
|
||||
tail --pid=$PARENT_PID -f 2>/dev/null
|
||||
Loading…
Add table
Add a link
Reference in a new issue