From 89ec6ca1188279fe8924c56f608536c18abb0f6b Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 25 Oct 2018 10:41:38 +0200 Subject: [PATCH] Update to PVE Kernel Cleaner - Added ability to detect if running non PVE kernel - Fixed install issues when installing from non script paths - Added boot disk space information such as percentage used, free space available - Added a boot disk health checker to see if the boot disk has reached to the defined max percentage used --- pvekclean.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvekclean.sh b/pvekclean.sh index cdcbdd5..acb034d 100644 --- a/pvekclean.sh +++ b/pvekclean.sh @@ -30,7 +30,7 @@ SOFTWARE. ______________________________________________ ' -# Percentage of used space in the /boot which would considered it critically full +# Percentage of used space in the /boot which would consider it critically full boot_critical_percent="80" # Current kernel @@ -260,7 +260,7 @@ function pve_kernel_clean { else printf "healthy " fi - # Display percentage used and avaialbe space left + # Display percentage used and available space left printf "at ${boot_info[4]}%% capacity (${boot_info[3]} free)\n" printf "[-] Searching for old PVE kernels on your system...\n" # For each kernel that was found via dpkg