mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Detect RPF breaking kernel updates.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
18d1c98f08
commit
bbb958b7ed
1 changed files with 9 additions and 6 deletions
|
@ -734,12 +734,15 @@ notify_package_updates_available() {
|
||||||
updatesToInstall=$(eval "${PKG_COUNT}")
|
updatesToInstall=$(eval "${PKG_COUNT}")
|
||||||
echo " done!"
|
echo " done!"
|
||||||
echo ":::"
|
echo ":::"
|
||||||
if [[ ${updatesToInstall} -eq "0" ]]; then
|
if [[ -d "/lib/modules/$(uname -r)" ]]; then
|
||||||
echo "::: Your system is up to date! Continuing with Pi-hole installation..."
|
if [[ ${updatesToInstall} -eq "0" ]]; then
|
||||||
else
|
echo "::: Your system is up to date! Continuing with Pi-hole installation..."
|
||||||
echo "::: There are ${updatesToInstall} updates available for your system!"
|
else
|
||||||
echo "::: We recommend you update your OS after installing Pi-Hole! "
|
echo "::: There are ${updatesToInstall} updates available for your system!"
|
||||||
echo ":::"
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue