mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-23 07:18:07 +00:00
Merge pull request #1052 from pi-hole/fix/missing_modules
Detect missing kernel modules
This commit is contained in:
commit
d1ccd7a460
@ -734,12 +734,16 @@ 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
|
||||||
|
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
|
||||||
else
|
else
|
||||||
echo "::: There are ${updatesToInstall} updates available for your system!"
|
echo "::: Kernel update detected, please reboot your system and try again if your installation fails."
|
||||||
echo "::: We recommend you update your OS after installing Pi-Hole! "
|
|
||||||
echo ":::"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user