trap 'cd; rm -rf "$tmpdir"' EXIT
cd $tmpdir
-# update ver= when we are ready to jump to a new stable kernel.
-# note: this is duplicated in 11-iank.
+# update stable_ver when we are ready to jump to a new stable kernel.
# Stable kernels are listed here: https://www.kernel.org/category/releases.html
-ver='6\.6'
+stable_ver='6\.6'
va=$(curl -s https://kernel.ubuntu.com/mainline/ | \
sed -rn 's,.*alt="\[DIR\]".*href="([^/]+).*,\1,p' | \
- grep -v -- -rc | sed 's/^v//' | grep "^$ver" | sort -V | tail -n1)
+ grep -v -- -rc | sed 's/^v//' | grep "^$stable_ver" | sort -V | tail -n1)
# note the wiki page about these says to install linux-headers.*generic.*amd64, but
# as of 2024, they have a requirement of a very new glibc, and people report
done
if (( ${#urls[@]} >= 1 )); then
wget "${urls[@]}"
- dpkg -i *.deb
+ dpkg -i ./*.deb
fi