Update edge-kernel.sh

This commit is contained in:
tteckster 2022-07-13 12:07:52 -04:00 committed by GitHub
parent 09cff9fcda
commit f85a4638f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -28,7 +28,8 @@ show_menu(){
printf "${menu}**${number} 1)${normal} Install Proxmox 5.18 Edge Kernel & Reboot\n" 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} 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} 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 "${menu}*********************************************${normal}\n"
printf "Please choose an option from the menu and enter or ${fgred}x${normal} to exit." printf "Please choose an option from the menu and enter or ${fgred}x${normal} to exit."
read opt read opt
@ -94,6 +95,19 @@ while [ $opt != '' ]
break; break;
;; ;;
4) while true; do 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 read -p "Are you sure you want to Remove Proxmox Edge Kernel & Reboot? Proceed(y/n)?" yn
case $yn in case $yn in
[Yy]* ) break;; [Yy]* ) break;;