summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/update-rt.sh
diff options
context:
space:
mode:
authorilian <ilian@tuta.io>2021-01-24 16:26:04 +0100
committerTim Steinbach <NeQuissimus@users.noreply.github.com>2021-02-13 20:15:37 -0500
commit1c9d1783718afd77a88b7613e51fc27b01b90682 (patch)
tree52b777d41aac89b322fe227cc4e21a9be6b89595 /pkgs/os-specific/linux/kernel/update-rt.sh
parenta8559f10e5ae6618e6a5c6e23bcf88d782ef56bf (diff)
downloadnixpkgs-1c9d1783718afd77a88b7613e51fc27b01b90682.tar
nixpkgs-1c9d1783718afd77a88b7613e51fc27b01b90682.tar.gz
nixpkgs-1c9d1783718afd77a88b7613e51fc27b01b90682.tar.bz2
nixpkgs-1c9d1783718afd77a88b7613e51fc27b01b90682.tar.lz
nixpkgs-1c9d1783718afd77a88b7613e51fc27b01b90682.tar.xz
nixpkgs-1c9d1783718afd77a88b7613e51fc27b01b90682.tar.zst
nixpkgs-1c9d1783718afd77a88b7613e51fc27b01b90682.zip
linux-rt: use latest version
Take the last kernel version listed in sha256sums.asc when
multiple versions are listed.
We assume that the patches listed in sha256sums.asc are ordered by
increasing version number.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/update-rt.sh')
-rwxr-xr-xpkgs/os-specific/linux/kernel/update-rt.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/update-rt.sh b/pkgs/os-specific/linux/kernel/update-rt.sh
index 4cbd45524a8..8cac5929252 100755
--- a/pkgs/os-specific/linux/kernel/update-rt.sh
+++ b/pkgs/os-specific/linux/kernel/update-rt.sh
@@ -36,7 +36,8 @@ file-version() {
 latest-rt-version() {
     branch="$1" # e.g. 5.4
     curl -sL "$mirror/projects/rt/$branch/sha256sums.asc" |
-        sed -ne '/.patch.xz/ { s/.*patch-\(.*\).patch.xz/\1/; p; q }'
+        sed -ne '/.patch.xz/ { s/.*patch-\(.*\).patch.xz/\1/p}' |
+        tail -n 1
 }
 
 update-if-needed() {