mirror of
				https://github.com/riptidewave93/UNVR-NAS.git
				synced 2025-03-09 15:40:13 +00:00 
			
		
		
		
	* 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
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			701 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			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"
 |