From d1b5f95aa7c4ac88c6e9dd26dc0c30351e779800 Mon Sep 17 00:00:00 2001 From: UltChowsk Date: Wed, 26 Feb 2025 20:37:13 -0500 Subject: [PATCH 1/2] Removing kernel check based on discussion in Pi-Hole PR pi-hole#5957. Signed-off-by: UltChowsk --- automated install/basic-install.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 3bf14cc5..76c5765b 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1476,17 +1476,12 @@ notify_package_updates_available() { # Store the list of packages in a variable updatesToInstall=$(eval "${PKG_COUNT}") - if [[ -d "/lib/modules/$(uname -r)" ]]; then if [[ "${updatesToInstall}" -eq 0 ]]; then printf "%b %b %s... up to date!\\n\\n" "${OVER}" "${TICK}" "${str}" else printf "%b %b %s... %s updates available\\n" "${OVER}" "${TICK}" "${str}" "${updatesToInstall}" printf " %b %bIt is recommended to update your OS after installing the Pi-hole!%b\\n\\n" "${INFO}" "${COL_LIGHT_GREEN}" "${COL_NC}" fi - else - printf "%b %b %s\\n" "${OVER}" "${CROSS}" "${str}" - printf " Kernel update detected. If the install fails, please reboot and try again\\n" - fi } install_dependent_packages() { From 869411a51440cb236ff6d076a798cb58032ec02e Mon Sep 17 00:00:00 2001 From: UltChowsk Date: Thu, 27 Feb 2025 06:23:56 -0500 Subject: [PATCH 2/2] Fixing whitespaces after removing lines. Signed-off-by: UltChowsk --- automated install/basic-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 76c5765b..96ed17b2 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1476,12 +1476,12 @@ notify_package_updates_available() { # Store the list of packages in a variable updatesToInstall=$(eval "${PKG_COUNT}") - if [[ "${updatesToInstall}" -eq 0 ]]; then - printf "%b %b %s... up to date!\\n\\n" "${OVER}" "${TICK}" "${str}" - else - printf "%b %b %s... %s updates available\\n" "${OVER}" "${TICK}" "${str}" "${updatesToInstall}" - printf " %b %bIt is recommended to update your OS after installing the Pi-hole!%b\\n\\n" "${INFO}" "${COL_LIGHT_GREEN}" "${COL_NC}" - fi + if [[ "${updatesToInstall}" -eq 0 ]]; then + printf "%b %b %s... up to date!\\n\\n" "${OVER}" "${TICK}" "${str}" + else + printf "%b %b %s... %s updates available\\n" "${OVER}" "${TICK}" "${str}" "${updatesToInstall}" + printf " %b %bIt is recommended to update your OS after installing the Pi-hole!%b\\n\\n" "${INFO}" "${COL_LIGHT_GREEN}" "${COL_NC}" + fi } install_dependent_packages() {