From ab03b8e159c720dcb95920036116a227d7fe4bc9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Nov 2016 17:03:56 +0000 Subject: [PATCH] Use backports kernel if possible --- src/freedombone-utils-setup | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 136016e6..3c05a631 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -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