mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2026-03-14 00:14:03 +08:00
Compare commits
9 Commits
2024-08-19
...
62a8f744e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62a8f744e4 | ||
|
|
1de7420796 | ||
|
|
f0c54a8d6c | ||
|
|
1fbde3296f | ||
|
|
1af4da738a | ||
|
|
9aaf797f8d | ||
|
|
795307fc91 | ||
|
|
869be5f694 | ||
|
|
8b033a5085 |
@@ -17,7 +17,6 @@ Usage: `sudo ./install.sh [OPTIONS...]`
|
|||||||
```
|
```
|
||||||
|
|
||||||
_If no options are used, a user interface `dialog` will show up instead_
|
_If no options are used, a user interface `dialog` will show up instead_
|
||||||
|
|
||||||
### Examples:
|
### Examples:
|
||||||
- Install Tela theme on 2k display device:
|
- Install Tela theme on 2k display device:
|
||||||
|
|
||||||
|
|||||||
17
install.sh
17
install.sh
@@ -82,6 +82,9 @@ generate() {
|
|||||||
elif [[ -d "/boot/grub2" ]]; then
|
elif [[ -d "/boot/grub2" ]]; then
|
||||||
THEME_DIR='/boot/grub2/themes'
|
THEME_DIR='/boot/grub2/themes'
|
||||||
fi
|
fi
|
||||||
|
if [[ -d "/boot/efi/EFI/fedora" ]]; then
|
||||||
|
THEME_DIR='/boot/efi/EFI/fedora/themes'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make a themes directory if it doesn't exist
|
# Make a themes directory if it doesn't exist
|
||||||
@@ -136,17 +139,9 @@ install() {
|
|||||||
prompt -i "\n Setting ${theme} as default..."
|
prompt -i "\n Setting ${theme} as default..."
|
||||||
|
|
||||||
# Backup grub config
|
# Backup grub config
|
||||||
if [[ -f /etc/default/grub.bak ]]; then
|
if [[ ! -f "/etc/default/grub.bak" ]]; then
|
||||||
echo -ne "\n${b_CWAR}File '/etc/default/grub.bak' already exists. Remove it? [yN]${CDEF}"
|
cp -an /etc/default/grub /etc/default/grub.bak
|
||||||
read choice
|
fi
|
||||||
if [ "$choice" = 'y' ]; then
|
|
||||||
cp -a /etc/default/grub /etc/default/grub.bak
|
|
||||||
else
|
|
||||||
echo -ne "\n${b_CWAR}Skipping to save a backup configuration in '/etc/default/grub.bak'${CDEF}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
cp -a /etc/default/grub /etc/default/grub.bak
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user