diff options
author | ilian <ilian@tuta.io> | 2021-01-24 16:26:04 +0100 |
---|---|---|
committer | Tim Steinbach <NeQuissimus@users.noreply.github.com> | 2021-02-13 20:15:37 -0500 |
commit | 1c9d1783718afd77a88b7613e51fc27b01b90682 (patch) | |
tree | 52b777d41aac89b322fe227cc4e21a9be6b89595 /pkgs/os-specific/linux/kernel/update-rt.sh | |
parent | a8559f10e5ae6618e6a5c6e23bcf88d782ef56bf (diff) | |
download | nixpkgs-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-x | pkgs/os-specific/linux/kernel/update-rt.sh | 3 |
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() { |