forked from fghibellini/arch-silence
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·23 lines (19 loc) · 815 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Install Gentoo silence.
# Check if we have to use doas or sudo
[ $(which doas) ] && root="doas" || root="sudo"
# Delete old theme directory
echo "Deleting old directory (/boot/grub/themes/gentoo-silence)"
$root rm -rf /boot/grub/themes/gentoo-silence
# Copy theme
echo "Copying theme (/boot/grub/themes/gentoo-silence)"
$root cp -r theme /boot/grub/themes/gentoo-silence
# Check if current Grub theme is not gentoo-silence
echo "Checking if current theme is gentoo-silence"
if [[ $(grep -E '^GRUB_THEME=' /etc/default/grub | sed 's/GRUB_THEME=//') =~ "gentoo-silence" ]]; then
echo "Current theme is gentoo-silence :)"
else
echo "Current theme is NOT gentoo-silence! :("
echo "Modify /etc/default/grub, and to set GRUB_THEME to"
echo 'GRUB_THEME="/boot/grub/themes/gentoo-silence/theme.txt"'
fi