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
|
@ -15,14 +15,14 @@ else
|
|||
fi
|
||||
|
||||
# Extract the goodies
|
||||
${scripts_path}/ubnt-fw-parse.py "${root_path}/unifi-firmware/${firmware_filename}" "${build_path}/fw-extract"
|
||||
${scripts_path}/ubnt-fw-parse.py "${root_path}/unifi-firmware/${firmware_filename}" "${build_path}/fw-extract/${firmware_filename%.bin}"
|
||||
|
||||
# Extract the squashfs rootfs
|
||||
echo "Extracting unifi rootfs as root..."
|
||||
sudo unsquashfs -f -d "${build_path}/fw-extract/rootfs" "${build_path}/fw-extract/rootfs.bin"
|
||||
sudo unsquashfs -f -d "${build_path}/fw-extract/${BOARD}-rootfs" "${build_path}/fw-extract/${firmware_filename%.bin}/rootfs.bin"
|
||||
|
||||
# Always build to pickup changes/updates/improvements
|
||||
debug_msg "Building ${docker_tag}"
|
||||
docker build -t ${docker_tag} ${root_path}
|
||||
|
||||
debug_msg "Finished 01_pre_docker.sh"
|
||||
debug_msg "Finished 01_pre_docker.sh"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue