summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--check-kernel.in14
1 files 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