Skip to content
Snippets Groups Projects
Commit ab03b8e1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Use backports kernel if possible

parent b6e7c9b1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment