File tree 2 files changed +23
-6
lines changed
2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ def preset_table():
28
28
8 `b8 8 8 8 8 . 8. 8 8 8 8 8 8 8 8
29
29
8 `8 `YooP' 8 `YooP' `Yooo' `YooP8 8 8 `YooP' 8oooP'
30
30
..:::..:.....::..:.....::.....::....8 :..:::..:.....::......:
31
- :::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8.1 :::::::::\n '''
31
+ :::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8.2 :::::::::\n '''
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+
3
+ THEMES_PATH=' '
4
+
5
+ # ==========================
6
+ get_path () {
7
+ if [[ -d " /boot/grub2" ]]; then
8
+ THEMES_PATH=' /boot/grub2/themes/noicegrub'
9
+ elif [[ -d " /boot/grub" ]]; then
10
+ THEMES_PATH=' /boot/grub/themes/noicegrub'
11
+ elif [[ -d " /boot/efi/EFI/fedora" ]]; then
12
+ THEMES_PATH=' /boot/efi/EFI/fedora/themes/noicegrub'
13
+ fi
14
+ }
15
+
16
+ get_path
17
+ # =========================
18
+
2
19
printf " \033[94m\033[1m"
3
20
cat << EOF
4
21
_ _ _ _
5
22
___ ___|_|___ ___ ___ ___ _ _| |_ _ _ ___ _| | |_
6
23
| | . | | _| -_| . | _| | | . | | | . | . | _|
7
24
|_|_|___|_|___|___|_ |_| |___|___|___| _|___|_|
8
25
|___| |_|
9
- NoiceGRUB Theme Installer v1.2
26
+ NoiceGRUB Theme Installer v1.3
10
27
11
28
EOF
12
29
16
33
exit
17
34
fi
18
35
19
- printf " \033[92m[+] \033[94mCreating /boot/grub/themes/noicegrub \n"
20
- mkdir -p /boot/grub/themes/noicegrub
36
+ printf " \033[92m[+] \033[94mCreating $THEMES_PATH \n"
37
+ mkdir -p $THEMES_PATH
21
38
printf " \033[92m[+] \033[94mCopying files\n"
22
- cp ./export/* /boot/grub/themes/noicegrub
39
+ cp ./export/* $THEMES_PATH
23
40
sed -i ' s/.*GRUB_THEME=.*//' /etc/default/grub
24
- echo " GRUB_THEME=/boot/grub/themes/noicegrub /theme.txt" >> /etc/default/grub
41
+ echo " GRUB_THEME=$THEMES_PATH /theme.txt" >> /etc/default/grub
25
42
printf " \033[92m[+] \033[94mRunning update-grub\n\033[92m"
26
43
update-grub
You can’t perform that action at this time.
0 commit comments