mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
16 lines
478 B
Bash
Executable file
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
|