From 7a59ceac08fbb5fdddaa66006271fc4eb979125f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 10 Jan 2018 22:06:15 +0100 Subject: check-kernel.in: find arch kernel with non-standard name (e.g. linux-raspberry) --- check-kernel.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/check-kernel.in b/check-kernel.in index 4b9f421..9c2f2e4 100644 --- a/check-kernel.in +++ b/check-kernel.in @@ -56,8 +56,18 @@ if which pacman >/dev/null 2>&1; then ' ) installed=$( - pacman -Q linux | \ - cut -d' ' -f2 + { + pacman -Q linux 2>/dev/null || \ + pacman -Q | \ + grep '^linux-' | \ + sed ' + s/-headers / / + ' | \ + uniq -d + } | \ + cut -d' ' -f2 | \ + sort -V | \ + tail -n1 ) elif which apt >/dev/null 2>&1; then # debian -- cgit v1.2.3-70-g09d2