mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-12 10:31:55 +00:00
* Enable Bluetooth LE radio support * Build our own bccmd which we need to setup/enable this BT chipset sadly * Use our own tool we build to interface with the ubnt eeprom, so we can not rely on their custom kernel module * Also fix HDDs not spinning down on shutdown, doing something similar to how unifi does it but a tad more generic.
33 lines
883 B
Bash
Executable file
33 lines
883 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
|
|
|
|
# Bluez
|
|
if [ ! -f ${root_path}/downloads/${bluez_filename} ]; then
|
|
debug_msg "Downloading Package Bluez..."
|
|
wget ${bluez_src} -O ${root_path}/downloads/${bluez_filename}
|
|
fi
|
|
|
|
debug_msg "Finished 02_download_dependencies.sh"
|