From f85a4638f622d9ff3590654e6cb7d06e43b5a02f Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 13 Jul 2022 12:07:52 -0400 Subject: [PATCH] Update edge-kernel.sh --- misc/edge-kernel.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/misc/edge-kernel.sh b/misc/edge-kernel.sh index fff7310b..4df61649 100644 --- a/misc/edge-kernel.sh +++ b/misc/edge-kernel.sh @@ -28,7 +28,8 @@ show_menu(){ printf "${menu}**${number} 1)${normal} Install Proxmox 5.18 Edge Kernel & Reboot\n" printf "${menu}**${number} 2)${normal} Switch to Proxmox PVE ${menu}${PVE_KERNEL}${normal} Kernel & Reboot\n" printf "${menu}**${number} 3)${normal} Switch to Proxmox Edge ${menu}${EDGE_KERNEL}${normal} Kernel & Reboot\n" - printf "${menu}**${number} 4)${normal} Remove Proxmox Edge Kernel & Reboot\n" + printf "${menu}**${number} 4)${normal} Unpin Current Kernel\n" + printf "${menu}**${number} 5)${normal} Remove Proxmox Edge Kernel & Reboot\n" printf "${menu}*********************************************${normal}\n" printf "Please choose an option from the menu and enter or ${fgred}x${normal} to exit." read opt @@ -94,6 +95,19 @@ while [ $opt != '' ] break; ;; 4) while true; do + read -p "Are you sure you want to Unpin the Current Kernel? Proceed(y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac + done + clear; + option_picked "Unpinning Current Kernel"; + proxmox-boot-tool kernel unpin + break; + ;; + 5) while true; do read -p "Are you sure you want to Remove Proxmox Edge Kernel & Reboot? Proceed(y/n)?" yn case $yn in [Yy]* ) break;;