From 16d60905a67ad0b5d037caeeefee3e701832cfd4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Nov 2019 05:58:37 +0100 Subject: pacman macht noch kein Arch! --- check-kernel.in | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/check-kernel.in b/check-kernel.in index 7a6500c..2dd5e15 100644 --- a/check-kernel.in +++ b/check-kernel.in @@ -54,7 +54,23 @@ if [ -f '#ETCDIR#/check-kernel.conf' ]; then fi unset installed -if which pacman >/dev/null 2>&1; then +if command -v pkgrm >/dev/null \ +&& command -v pkgadd >/dev/null \ +&& [ -d /etc/ports ]; then + running=$( + uname -r + ) + installed=$( + ls /boot | \ + sed -n ' + s/^vmlinuz-\([0-9.]\+\)$/\1/ + T + p + ' | \ + sort -V | \ + tail -n1 + ) +elif which pacman >/dev/null 2>&1; then # arch linux running=$( uname -r | \ -- cgit v1.2.3-70-g09d2