mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 19:15:35 +01:00
Update install.sh
This commit is contained in:
parent
9527f1c408
commit
8b0c63584b
18
install.sh
18
install.sh
@ -123,15 +123,15 @@ install() {
|
|||||||
|
|
||||||
# Fedora workaround to fix the missing unicode.pf2 file (tested on fedora 34): https://bugzilla.redhat.com/show_bug.cgi?id=1739762
|
# Fedora workaround to fix the missing unicode.pf2 file (tested on fedora 34): https://bugzilla.redhat.com/show_bug.cgi?id=1739762
|
||||||
# This occurs when we add a theme on grub2 with Fedora.
|
# This occurs when we add a theme on grub2 with Fedora.
|
||||||
if has_command dnf; then
|
# if has_command dnf; then
|
||||||
if grep "GRUB_FONT=" /etc/default/grub 2>&1 >/dev/null; then
|
# if grep "GRUB_FONT=" /etc/default/grub 2>&1 >/dev/null; then
|
||||||
#Replace GRUB_FONT
|
# #Replace GRUB_FONT
|
||||||
sed -i "s|.*GRUB_FONT=.*|GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2|" /etc/default/grub
|
# sed -i "s|.*GRUB_FONT=.*|GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2|" /etc/default/grub
|
||||||
else
|
# else
|
||||||
#Append GRUB_FONT
|
# #Append GRUB_FONT
|
||||||
echo "GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2" >> /etc/default/grub
|
# echo "GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2" >> /etc/default/grub
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
if grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null; then
|
if grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null; then
|
||||||
#Replace GRUB_THEME
|
#Replace GRUB_THEME
|
||||||
|
Loading…
Reference in New Issue
Block a user