forked from mateosss/matter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvmhq.sh
executable file
·30 lines (29 loc) · 1.05 KB
/
vmhq.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if [ -d "/boot/grub" ]; then
if [ -d "/boot/grub/themes/Matter" ]; then
cp -rn Matter /boot/grub/themes
cp Matter/theme.txt Matter/background.jpg Matter/font.pf2 /boot/grub/themes/Matter/
else
mv Matter/theme.txt tmptheme.txt
./matter.py -i $* -hl 83B81A -fg FFFFFF -bg 282629
mv tmptheme.txt Matter/theme.txt
cp -r Matter /boot/grub/themes
fi
./matter.py --seticons -i $*
update-grub
elif [ -d "/boot/grub2" ]; then
if [ -d "/boot/grub2/themes/Matter" ]; then
cp -rn Matter /boot/grub2/themes
cp Matter/theme.txt Matter/background.jpg Matter/font.pf2 /boot/grub2/themes/Matter/
else
mv Matter/theme.txt tmptheme.txt
./matter.py -i $* -hl 83B81A -fg FFFFFF -bg 282629
mv tmptheme.txt Matter/theme.txt
cp -r Matter /boot/grub2/themes
fi
./matter.py --seticons -i $*
update-grub
else
echo "No /boot/grub nor /boot/grub2 found on your system!"
echo "Check whether you have GRUB installed and where is it located at."
exit 1
fi