From 0200ce545cf218ed76d8c2811aedadc466221813 Mon Sep 17 00:00:00 2001 From: Orazio Date: Thu, 23 Jul 2020 14:08:06 +0200 Subject: [PATCH] When asking the user to upgrade the system, show the kernel package version instead of the kernel version. --- auto_install/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 2b7b157..0a24d16 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -1229,7 +1229,7 @@ installWireGuard(){ echo "::: curl -L https://install.pivpn.io | bash" exit 1 else - if (whiptail --title "Install WireGuard" --yesno "Your Raspberry Pi is running kernel $(uname -r), which is not the latest.\n\nInstalling WireGuard requires the latest kernel, so to continue, first you need to upgrade all packages, then reboot, and then run the script again.\n\nProceed to the upgrade?" ${r} ${c}); then + if (whiptail --title "Install WireGuard" --yesno "Your Raspberry Pi is running kernel package ${INSTALLED_KERNEL}, however the latest version is ${CANDIDATE_KERNEL}.\n\nInstalling WireGuard requires the latest kernel, so to continue, first you need to upgrade all packages, then reboot, and then run the script again.\n\nProceed to the upgrade?" ${r} ${c}); then if command -v debconf-apt-progress &> /dev/null; then # shellcheck disable=SC2086 $SUDO debconf-apt-progress -- ${PKG_MANAGER} upgrade -y