Enables custom boot scripts for the UniFi UXG-Pro. Inspired by
on-boot-script
from udm-utilities
and
based on ideas from boostchicken-dev/udm-utilities#356. Intended to be fully
compatible with udm-utilities
, such that all of the scripts
from the original repository should work verbatim.
Tested on the following firmware versions:
You can install uxg-boot
by running the following command on your UXG-Pro.
curl -fLSs https://raw.githubusercontent.com/unifi-utilities/uxg-boot/master/install.sh | sh
VERSION=$(podman image inspect --format '{{ .Labels.version }}' uxg-setup:default)
uxg-setup update joshuaspence/uxg-setup:$(VERSION)
curl -fLSs https://raw.githubusercontent.com/unifi-utilities/uxg-boot/master/install.sh | sh -s uninstall
podman image tag uxg-setup:latest uxg-setup:default
uxg-setup reset
Once installed, any executable files in /mnt/data/on_boot.d
will be executed
when the uxg-setup
container is started. As the uxg-setup
container could
be started multiple times (e.g. by being restarted), boot scripts should be
idempotent.
#!/bin/sh
podman container exists multicast-relay || podman create --detach --name multicast-relay --network host --restart always scyto/multicast-relay:latest
podman start multicast-relay