pin_kernel=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Current Kernel $current_kernel" --radiolist "\nSelect Kernel to pin:\nCancel to Unpin any Kernel"16$((MSG_MAX_LENGTH +58))6"${KERNEL_MENU[@]}" 3>&1 1>&2 2>&3| tr -d '"')||exit
[ -z "$pin_kernel"]&&{
whiptail --backtitle "Proxmox VE Helper Scripts" --title "No Kernel Selected" --msgbox "It appears that no Kernel was selected\nUnpinning any pinned Kernel"1068
msg_info "Unpinning any Kernel"
proxmox-boot-tool kernel unpin &>/dev/null
msg_ok "Unpinned any Kernel\n"
proxmox-boot-tool kernel list
echo""
msg_ok "Finished\n"
echo -e "${RD} REBOOT${CL}"
exit
}
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Proxmox VE Kernel Pin" --yesno "Would you like to pin the $pin_kernel Kernel?"1068||exit