Detect RPF breaking kernel updates.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2016-12-29 01:34:49 -08:00
parent 18d1c98f08
commit bbb958b7ed
No known key found for this signature in database
GPG key ID: 572E999E385B7BFC

View file

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