Comment out GRUB_TERMINAL=console if present

This commit is contained in:
Stuart Hayhurst 2020-10-18 10:37:05 +01:00
parent c38a3261a5
commit 8786f9f59c

View File

@ -189,6 +189,11 @@ install() {
echo "${gfxmode}" >> /etc/default/grub echo "${gfxmode}" >> /etc/default/grub
fi fi
if grep "GRUB_TERMINAL=console" /etc/default/grub 2>&1 >/dev/null; then
#Replace GRUB_TERMINAL
sed -i "s|.*GRUB_TERMINAL=console.*|#GRUB_TERMINAL=console|" /etc/default/grub
fi
# Update grub config # Update grub config
prompt -i "\n Updating grub config...\n" prompt -i "\n Updating grub config...\n"