mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2026-03-07 11:14:01 +08:00
Merge pull request #242 from aryankaran/patch-1
Fix background in terminal
This commit is contained in:
@@ -215,11 +215,8 @@ install() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if grep "GRUB_BACKGROUND=" /etc/default/grub 2>&1 >/dev/null; then
|
if grep "GRUB_BACKGROUND=" /etc/default/grub 2>&1 >/dev/null; then
|
||||||
#Replace GRUB_BACKGROUND
|
# remove GRUB_BACKGROUND
|
||||||
sed -i "s|.*GRUB_BACKGROUND=.*|GRUB_BACKGROUND=\"${THEME_DIR}/${theme}/background.jpg\"|" /etc/default/grub
|
sed -i "s|.*GRUB_BACKGROUND=.*||" /etc/default/grub
|
||||||
else
|
|
||||||
#Append GRUB_BACKGROUND
|
|
||||||
echo "GRUB_BACKGROUND=\"${THEME_DIR}/${theme}/background.jpg\"" >> /etc/default/grub
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure the right resolution for grub is set
|
# Make sure the right resolution for grub is set
|
||||||
|
|||||||
Reference in New Issue
Block a user