Use backports kernel if possible

This commit is contained in:
Bob Mottram 2016-11-02 17:03:56 +00:00
parent b6e7c9b16c
commit ab03b8e159
1 changed files with 12 additions and 0 deletions

View File

@ -138,6 +138,15 @@ function reset_usb_devices {
udevadm control --reload-rules
}
function install_backports_kernel {
# install backports kernel if possible
architecture_type=$(uname -a)
if [[ "$architecture_type" == *"amd64"* ]]; then
apt-get -yq install linux-image-amd64 -t jessie-backports
fi
}
function initial_setup {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
@ -321,6 +330,9 @@ function setup_utils {
read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
function_check install_backports_kernel
install_backports_kernel
function_check create_completion_file
create_completion_file