mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-14 19:41:55 +00:00
36 lines
903 B
Bash
Executable file
36 lines
903 B
Bash
Executable file
#!/bin/bash
|
|
|
|
root_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
|
build_path="${root_path}/BuildEnv"
|
|
|
|
# Docker image name
|
|
docker_tag=unvr-nas:builder
|
|
|
|
# Expected UNVR Firmware and hash
|
|
firmware_filename="f449-UNVRPRO-4.0.3-fdec2c4f-1855-4eb6-8711-e22f8f904922.bin"
|
|
firmware_md5="5dcdc03bdec1524767007fcd12e81777"
|
|
|
|
# Genimage
|
|
genimage_src="https://github.com/pengutronix/genimage/releases/download/v16/genimage-16.tar.xz"
|
|
genimage_filename="$(basename ${genimage_src})"
|
|
genimage_repopath="${genimage_filename%.tar.xz}"
|
|
|
|
# Distro
|
|
distrib_name="debian"
|
|
#deb_mirror="http://ftp.us.debian.org/debian"
|
|
deb_mirror="http://debian.uchicago.edu/debian"
|
|
deb_release="bookworm"
|
|
deb_arch="arm64"
|
|
fs_overlay_dir="filesystem"
|
|
|
|
debug_msg () {
|
|
BLU='\033[0;32m'
|
|
NC='\033[0m'
|
|
printf "${BLU}${@}${NC}\n"
|
|
}
|
|
|
|
error_msg () {
|
|
BLU='\033[0;31m'
|
|
NC='\033[0m'
|
|
printf "${BLU}${@}${NC}\n"
|
|
}
|