mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 07:05:34 +01:00
Merge pull request #96 from Dragon8oy/master
Autocomment GRUB_TERMINAL_OUTPUT=console
This commit is contained in:
commit
6d1580cd00
@ -189,9 +189,14 @@ install() {
|
||||
echo "${gfxmode}" >> /etc/default/grub
|
||||
fi
|
||||
|
||||
if grep "GRUB_TERMINAL=console" /etc/default/grub 2>&1 >/dev/null; then
|
||||
if grep "GRUB_TERMINAL=console" /etc/default/grub 2>&1 >/dev/null || 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
|
||||
sed -i "s|.*GRUB_TERMINAL=.*|#GRUB_TERMINAL=console|" /etc/default/grub
|
||||
fi
|
||||
|
||||
if grep "GRUB_TERMINAL_OUTPUT=console" /etc/default/grub 2>&1 >/dev/null || grep "GRUB_TERMINAL_OUTPUT=\"console\"" /etc/default/grub 2>&1 >/dev/null; then
|
||||
#Replace GRUB_TERMINAL_OUTPUT
|
||||
sed -i "s|.*GRUB_TERMINAL_OUTPUT=.*|#GRUB_TERMINAL_OUTPUT=console|" /etc/default/grub
|
||||
fi
|
||||
|
||||
# Update grub config
|
||||
|
Loading…
Reference in New Issue
Block a user