From 21b62610b5bbaa180349059ac5b3bf028654f1cb Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 13 Oct 2022 09:24:33 -0400 Subject: [PATCH] Update kernel-clean.sh --- misc/kernel-clean.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/misc/kernel-clean.sh b/misc/kernel-clean.sh index 212ad8e0..8a337672 100644 --- a/misc/kernel-clean.sh +++ b/misc/kernel-clean.sh @@ -68,14 +68,11 @@ function edge_kernel() { } function kernel_info() { - latest_kernel=$(dpkg --list| grep 'kernel-.*-pve' | awk '{print $2}' | tac | head -n 1) if [[ "$MODE" != "PBS" ]]; then echo -e "${YW}PVE Version: ${BL}$(pveversion)\n${CL}" fi if [[ "$current_kernel" == *"pve"* ]]; then - if [[ "$latest_kernel" != *"$current_kernel"* ]]; then - echo -e "${GN}Latest Kernel: $latest_kernel\n${CL}" - fi + echo -e "${YW}Current Kernel: ${BL}$current_kernel\n${CL}" else echo -e "\n${CROSS} ${RD}ERROR: No PVE Kernel Found\n${CL}" exit 1