diff --git a/run-danted.sh b/run-danted.sh index 9700b84..817a96b 100644 --- a/run-danted.sh +++ b/run-danted.sh @@ -6,4 +6,9 @@ $DANTE_LISTEN_PORT $DANTE_FORWARD_INTERFACE ' < /etc/dante/danted.conf.template > /etc/dante/danted.conf -sockd -f /etc/dante/danted.conf +if ip address show $DANTE_FORWARD_INTERFACE&>/dev/null; then + sockd -f /etc/dante/danted.conf +else + echo "Waiting for interface $DANTE_FORWARD_INTERFACE to come online..." + sleep 5 +fi