From 63dcf1d78873afbd5d54d7ab6cb5e6e5516990f5 Mon Sep 17 00:00:00 2001 From: hede5562 Date: Sun, 24 Apr 2022 12:32:04 +0200 Subject: [PATCH] download only newer kernels and modules --- updatekernel.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/updatekernel.sh b/updatekernel.sh index ca332971..458d8f32 100644 --- a/updatekernel.sh +++ b/updatekernel.sh @@ -27,11 +27,13 @@ if [[ -n "$DIR" ]]; then cp ${DIR}/bzImage . cp ${DIR}/modules.tar.xz . elif [[ $VERSION == "ALT" ]]; then - wget https://github.com/cb-linux/breath/releases/latest/download/bzImage.alt -O bzImage -q --show-progress - wget https://github.com/cb-linux/breath/releases/latest/download/modules.alt.tar.xz -O modules.tar.xz -q --show-progress + wget https://github.com/cb-linux/breath/releases/latest/download/bzImage.alt -N -q --show-progress + ln -s bzImage.alt bzImage + wget https://github.com/cb-linux/breath/releases/latest/download/modules.alt.tar.xz -N -q --show-progress + ln -s modules.alt.tar.xz modules.tar.xz else - wget https://github.com/cb-linux/breath/releases/latest/download/bzImage -O bzImage -q --show-progress - wget https://github.com/cb-linux/breath/releases/latest/download/modules.tar.xz -O modules.tar.xz -q --show-progress + wget https://github.com/cb-linux/breath/releases/latest/download/bzImage -N -q --show-progress + wget https://github.com/cb-linux/breath/releases/latest/download/modules.tar.xz -N -q --show-progress fi # Sign the kernel