Use backports kernel if possible
This commit is contained in:
parent
b6e7c9b16c
commit
ab03b8e159
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue