Skip to content

unifi-utilities/uxg-boot

Repository files navigation

uxg-boot

This approach doesn't work anymore, see #18. See also unifi-utilities/unifios-utilities#523

Enables custom boot scripts for the UniFi UXG-Pro. Inspired by on-boot-script from udm-utilities and based on ideas from unifi-utilities/unifios-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:

  • 1.11.0
  • 1.12.19
  • 1.13.6

Installation

Automatic

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

Manual

VERSION=$(podman image inspect --format '{{ .Labels.version }}' uxg-setup:default)
uxg-setup update joshuaspence/uxg-setup:$(VERSION)

Uninstallation

Automatic

curl -fLSs https://raw.githubusercontent.com/unifi-utilities/uxg-boot/master/install.sh | sh -s uninstall

Manual

podman image tag uxg-setup:latest uxg-setup:default
uxg-setup reset

Usage

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