Created
July 10, 2022 21:32
-
-
Save dcode/06e271cf67469d3ab8dc251ece0ad27f to your computer and use it in GitHub Desktop.
Startup script for SSDP mirroring on a UDM Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# file: /mnt/data/on_boot.d/30-ssdp-relay.sh | |
# See https://github.com/unifi-utilities/unifios-utilities | |
# for info on how to setup on-boot scripts | |
CONTAINER="ssdp-relay" | |
# Specify which interfaces to relay, number is VLAN number | |
INTERFACES="br10 br20" | |
if podman container exists "$CONTAINER"; then | |
podman start "$CONTAINER" | |
else | |
podman run -d \ | |
--network=host \ | |
--name="${CONTAINER}" \ | |
--restart=always \ | |
-e INTERFACES="${INTERFACES}" \ | |
-e OPTS="--noMDNS" \ | |
scyto/multicast-relay:latest | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that this disables the mDNS feature of the container since UDM Pro has that built into the UI