From 014d5c2391576824415994782b729cdd236fed93 Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Wed, 25 Oct 2023 12:48:45 -0600 Subject: [PATCH] Disable Annoying Daemon Restart Dialog --- ehcp/ehcpforceupdate.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ehcp/ehcpforceupdate.sh b/ehcp/ehcpforceupdate.sh index 0e33968..a3204bd 100755 --- a/ehcp/ehcpforceupdate.sh +++ b/ehcp/ehcpforceupdate.sh @@ -2271,6 +2271,12 @@ function installNewPackages(){ # Needed for PolicyD aptgetInstall libdbd-mysql-perl + + # Keep kernel update notifications from interrupting... + if [ -e "/etc/needrestart/needrestart.conf" ]; then + sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf + sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf + fi } function getRidOfExtraPHPMyAdminAlias(){