mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
feat: Add UNVR support (#11)
* Move partition mounts to PARTLABEL instead of paths * Add dual firmware building support, specify the build type using the BOARD env var when using make * Update to Unifi 4.0.5 pre-release firmware * Move ulcmd init to be our "user interface" setup script, will handle LEDs on the UNVR4 in the future * Update README with updated instructions * Add udev rules to support /dev/boot which is what Unifi uses for some stupid reason for their emmc. This is required for systemd to mount correctly after chroot. * Fixup small bugs found along the way
This commit is contained in:
parent
8e2262e121
commit
3f90bd2357
18 changed files with 210 additions and 79 deletions
|
@ -21,6 +21,17 @@ if [ ! -d /sys/module/loop ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Did we have a board set?
|
||||
if [ -z "${BOARD}" ]; then
|
||||
echo "Error: BOARD is not set, so we don't know what we are building for! Exiting..."
|
||||
echo "Please review the README.md on usage!"
|
||||
exit 1
|
||||
elif [ -z "${firmware_filename}" ]; then
|
||||
# Board is set, make sure it's a board we support
|
||||
echo "Error: Invalid BOARD value of ${BOARD}. Please review the README.md on usage!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Validate FW is downloaded
|
||||
if ! [ -f "${root_path}/unifi-firmware/${firmware_filename}" ]; then
|
||||
echo "Error: File ${firmware_filename} does not exist in ./unifi-firmware! Exiting..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue