From 8786f9f59cc9e2eb39b259510195e5d532f8d219 Mon Sep 17 00:00:00 2001 From: Stuart Hayhurst Date: Sun, 18 Oct 2020 10:37:05 +0100 Subject: [PATCH] Comment out GRUB_TERMINAL=console if present --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 4cca2c3..6057399 100755 --- a/install.sh +++ b/install.sh @@ -189,6 +189,11 @@ install() { echo "${gfxmode}" >> /etc/default/grub 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 prompt -i "\n Updating grub config...\n"