UNVR-NAS/scripts/02_download_dependencies.sh
Chris Blake f399e13958
fix: add btrfs support using magic (#5)
* Use old GPL release from https://github.com/fabianishere/udm-kernel/tree/master to build and steal it's btrfs kernel module + depends.
* Can't use full kernel, NIC issues everywhere, so we will just use it for btrfs for OMV. Will move to our own kernel fully if I can get an updated GPL release from Ui.
* BONUS: Fixup issue where system would reboot when shutdown from touch screen
2024-05-30 17:42:12 -05:00

27 lines
701 B
Bash
Executable file

#!/bin/bash
set -e
# Source our common vars
scripts_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${scripts_path}/vars.sh
debug_msg "Starting 02_download_dependencies.sh"
# Make sure our BuildEnv dir exists
if [ ! -d ${root_path}/downloads ]; then
mkdir ${root_path}/downloads
fi
# Toolchain
if [ ! -f ${root_path}/downloads/${toolchain_filename} ]; then
debug_msg "Downloading toolchain..."
wget ${toolchain_url} -P ${root_path}/downloads
fi
# Kernel
if [ ! -f ${root_path}/downloads/${kernel_filename} ]; then
debug_msg "Downloading Kernel..."
wget ${kernel_src} -O ${root_path}/downloads/${kernel_filename}
fi
debug_msg "Finished 02_download_dependencies.sh"