From d7daff3489f8d0be06c0757baa96ea8ff3915cb8 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Thu, 12 May 2022 11:27:32 +0200 Subject: [PATCH] Update check_running_kernel --- running-kernel/check_running_kernel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/running-kernel/check_running_kernel b/running-kernel/check_running_kernel index f2bb371..309bb39 100644 --- a/running-kernel/check_running_kernel +++ b/running-kernel/check_running_kernel @@ -35,7 +35,7 @@ if [[ "$uname" == *"-pve" ]]; then else filter=linux-image-$major_version fi -latest_kernel=$(dpkg --get-selections | grep $filter | grep -v deinstall | sort -V | tail -1 | cut -f1 | cut -d'-' -f3-) +latest_kernel=$(dpkg --get-selections | grep $filter | grep -E "\sinstall" | sort -V | tail -1 | cut -f1 | cut -d'-' -f3-) if [[ "$latest_kernel" == "$uname" ]]; then echo -e "0 \"Running Kernel\" version_ok=0;1;|running_kernel=$uname;;|latest_installed_kernel=$latest_kernel;; Currently running Kernel up-to-date - OK" else