Add a command-line option to force the mDNS backend
Add this option to the system-v init script.
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
#OUTPUT=ao
|
||||
#OUTPUT_OPTS=
|
||||
|
||||
# Force the mDNS backend
|
||||
# By default, shairport will try all backends until one works.
|
||||
# Check 'shairport -h' for details
|
||||
# MDNS=avahi
|
||||
|
||||
# Change how many frames re required to start playing
|
||||
#BUFFER_FILL=220
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ DAEMON_ARGS="--daemon --pidfile $PIDFILE --log $LOGFILE"
|
||||
[ -z "$ON_START" ] || DAEMON_ARGS="$DAEMON_ARGS --on-start \"$ON_START\""
|
||||
[ -z "$ON_STOP" ] || DAEMON_ARGS="$DAEMON_ARGS --on-stop \"$ON_STOP\""
|
||||
[ -z "$OUTPUT" ] || DAEMON_ARGS="$DAEMON_ARGS --output $OUTPUT"
|
||||
[ -z "$MDNS" ] || DAEMON_ARGS="$DAEMON_ARGS --mdns $MDNS"
|
||||
[ -z "$OUTPUT_OPTS" ] || DAEMON_ARGS="$DAEMON_ARGS -- $OUTPUT_OPTS"
|
||||
|
||||
# Exit if the package is not installed
|
||||
|
||||
Reference in New Issue
Block a user