mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2025-04-04 16:42:57 +02:00
update
This commit is contained in:
23
grub-theme-stylishdark/Install
Executable file
23
grub-theme-stylishdark/Install
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
ROOT_UID=0
|
||||
|
||||
if [ "$UID" -eq "$ROOT_UID" ]; then
|
||||
|
||||
# Copy StylishDark
|
||||
cp -a StylishDark /boot/grub/themes
|
||||
|
||||
# Set StylishDark
|
||||
grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_THEME=/d' /etc/default/grub
|
||||
echo "GRUB_THEME=\"/boot/grub/themes/StylishDark/theme.txt\"" >> /etc/default/grub
|
||||
|
||||
# update grub
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
echo -e "\n All done!"
|
||||
|
||||
else
|
||||
echo -e "\n Please run this script by root..."
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user