UNVR-NAS/overlay/filesystem/usr/lib/init/boot/ubnt-ulcmd.sh
Chris Blake 6f01afd72b fix: migrate UNVR init logic
Let's keep ulcmd for the pro only, and move LED stuff elsewhere.
2024-06-18 19:26:12 -05:00

16 lines
478 B
Bash
Executable file

#!/bin/bash
# ULCMD wrapper, used to start ulcmd on the UNVR Pro
# Ensure our tmp file with info is generated for our patched ulcmd
ubnteeprom -systeminfo > /tmp/.ubnthal_system_info
# Is ulcmd running already? if so, assume it was not done via systemd so let's
# kill and respawn as this is our systemd entry script for the service, and we
# need to have it foregrounded as we act as the "daemon" here.
if pidof -q ulcmd; then
killall ulcmd
fi
# Start ulcmd
exec ulcmd