Skip to content

Commit a94a81e

Browse files
authored
Merge pull request #4 from 1337kid/dev
v1.8.2
2 parents e1af5e3 + f9775ae commit a94a81e

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

noicegrub/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ def preset_table():
2828
8 `b8 8 8 8 8 . 8. 8 8 8 8 8 8 8 8
2929
8 `8 `YooP' 8 `YooP' `Yooo' `YooP8 8 8 `YooP' 8oooP'
3030
..:::..:.....::..:.....::.....::....8 :..:::..:.....::......:
31-
:::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8.1 :::::::::\n'''
31+
:::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8.2 :::::::::\n'''

scripts/install.sh

+22-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
#!/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+
219
printf "\033[94m\033[1m"
320
cat <<EOF
421
_ _ _ _
522
___ ___|_|___ ___ ___ ___ _ _| |_ _ _ ___ _| | |_
623
| | . | | _| -_| . | _| | | . | | | . | . | _|
724
|_|_|___|_|___|___|_ |_| |___|___|___| _|___|_|
825
|___| |_|
9-
NoiceGRUB Theme Installer v1.2
26+
NoiceGRUB Theme Installer v1.3
1027
1128
EOF
1229

@@ -16,11 +33,11 @@ then
1633
exit
1734
fi
1835

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
2138
printf "\033[92m[+] \033[94mCopying files\n"
22-
cp ./export/* /boot/grub/themes/noicegrub
39+
cp ./export/* $THEMES_PATH
2340
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
2542
printf "\033[92m[+] \033[94mRunning update-grub\n\033[92m"
2643
update-grub

0 commit comments

Comments
 (0)