From 2baddde5ba0418cba4aaa6a4704715d4b410c9e7 Mon Sep 17 00:00:00 2001 From: turmary Date: Sun, 27 Sep 2020 11:03:03 +0100 Subject: [PATCH] Fix: install ubuntu kernel only if debian kernel install failed --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 3be9d4d..e806c40 100755 --- a/install.sh +++ b/install.sh @@ -181,9 +181,10 @@ function install_kernel() { # Instead of retrieving the lastest kernel & headers [ "X$FORCE_KERNEL" == "X" ] && { # Raspbian kernel packages - apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel - # Ubuntu kernel packages - apt-get -y install linux-raspi linux-headers-raspi linux-image-raspi + apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel || { + # Ubuntu kernel packages + apt-get -y install linux-raspi linux-headers-raspi linux-image-raspi + } } || { # We would like to a fixed version KERN_NAME=raspberrypi-kernel_${FORCE_KERNEL}_${arch_r}.deb