mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-24 19:05:22 +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
|
||||
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user