Disable Annoying Daemon Restart Dialog

This commit is contained in:
earnolmartin 2023-10-25 12:29:26 -06:00
parent f715b7e53d
commit cb0a947e4c

View file

@ -209,6 +209,7 @@ function installInitialPrereqs(){
# Keep kernel update notifications from interrupting... # Keep kernel update notifications from interrupting...
if [ -e "/etc/needrestart/needrestart.conf" ]; then if [ -e "/etc/needrestart/needrestart.conf" ]; then
sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf 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 fi
} }