Merge pull request #96 from Dragon8oy/master

Autocomment GRUB_TERMINAL_OUTPUT=console
This commit is contained in:
Vince 2020-10-18 23:54:45 +08:00 committed by GitHub
commit 6d1580cd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,9 +189,14 @@ 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 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 #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 fi
# Update grub config # Update grub config