mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 16:26:13 +01:00
Comment out GRUB_TERMINAL=console if present
This commit is contained in:
parent
c38a3261a5
commit
8786f9f59c
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user