mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
fix: migrate UNVR init logic
Let's keep ulcmd for the pro only, and move LED stuff elsewhere.
This commit is contained in:
parent
24d98456e6
commit
6f01afd72b
5 changed files with 26 additions and 29 deletions
|
@ -21,11 +21,11 @@ apt-mark hold linux-image-* # We do not want these, as we run our own kernel!
|
|||
# Setup our services
|
||||
systemctl enable ubnt-init
|
||||
systemctl enable unvr-fan-daemon
|
||||
systemctl enable ulcmd # This runs ubnt-ulcmd.sh!
|
||||
|
||||
# Do we have ulcmd? if so, we are UNVRPRO so enable ulcmd services
|
||||
if [ -f "/usr/bin/ulcmd" ]; then
|
||||
systemctl enable mock-ubnt-api
|
||||
systemctl enable ulcmd
|
||||
systemctl enable ulcmd-reboot-hook
|
||||
systemctl enable ulcmd-shutdown-hook
|
||||
fi
|
||||
|
|
|
@ -63,12 +63,14 @@ else
|
|||
# Remove UNVRPRO specific files/services
|
||||
rm "${build_path}/rootfs/etc/ld.so.conf.d/ubnt.conf" \
|
||||
"${build_path}/rootfs/etc/systemd/system/mock-ubnt-api.service" \
|
||||
"${build_path}/rootfs/etc/systemd/system/ulcmd.service" \
|
||||
"${build_path}/rootfs/etc/systemd/system/ulcmd-reboot-hook.service" \
|
||||
"${build_path}/rootfs/etc/systemd/system/ulcmd-shutdown-hook.service" \
|
||||
"${build_path}/rootfs/usr/bin/mock-ubnt-api" \
|
||||
"${build_path}/rootfs/usr/bin/ubnt-systool" \
|
||||
"${build_path}/rootfs/usr/bin/ubnt-tools" \
|
||||
"${build_path}/rootfs/usr/bin/ustorage"
|
||||
"${build_path}/rootfs/usr/bin/ustorage" \
|
||||
"${build_path}/rootfs/usr/lib/init/boot/ubnt-ulcmd.sh"
|
||||
fi
|
||||
|
||||
# Copy over bluetooth firmware files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue