Detect RPF breaking kernel updates.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
pull/1052/head
Dan Schaper 7 years ago
parent 18d1c98f08
commit bbb958b7ed
No known key found for this signature in database
GPG Key ID: 572E999E385B7BFC

@ -734,12 +734,15 @@ notify_package_updates_available() {
updatesToInstall=$(eval "${PKG_COUNT}")
echo " done!"
echo ":::"
if [[ ${updatesToInstall} -eq "0" ]]; then
echo "::: Your system is up to date! Continuing with Pi-hole installation..."
else
echo "::: There are ${updatesToInstall} updates available for your system!"
echo "::: We recommend you update your OS after installing Pi-Hole! "
echo ":::"
if [[ -d "/lib/modules/$(uname -r)" ]]; then
if [[ ${updatesToInstall} -eq "0" ]]; then
echo "::: Your system is up to date! Continuing with Pi-hole installation..."
else
echo "::: There are ${updatesToInstall} updates available for your system!"
echo "::: We recommend you update your OS after installing Pi-Hole! "
echo ":::"
fi
echo "::: Kernel update detected, please reboot your system and try again if your installation fails."
fi
}

Loading…
Cancel
Save