Skip to content

Instantly share code, notes, and snippets.

@dcode
Created July 10, 2022 21:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcode/06e271cf67469d3ab8dc251ece0ad27f to your computer and use it in GitHub Desktop.
Save dcode/06e271cf67469d3ab8dc251ece0ad27f to your computer and use it in GitHub Desktop.
Startup script for SSDP mirroring on a UDM Pro
#!/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
@dcode
Copy link
Author

dcode commented Jul 10, 2022

Note that this disables the mDNS feature of the container since UDM Pro has that built into the UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment