mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-26 07:05:35 +01:00
26 lines
526 B
Plaintext
26 lines
526 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
ROOT_UID=0
|
||
|
|
||
|
if [ "$UID" -eq "$ROOT_UID" ]; then
|
||
|
|
||
|
# Copy Vimix
|
||
|
cp -a Vimix /boot/grub/themes
|
||
|
|
||
|
# Set Vimix
|
||
|
grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_THEME=/d' /etc/default/grub
|
||
|
echo "GRUB_THEME=\"/boot/grub/themes/Vimix/theme.txt\"" >> /etc/default/grub
|
||
|
|
||
|
# update grub
|
||
|
update-grub
|
||
|
|
||
|
echo -e "/n All done!"
|
||
|
notify-send "All done!" -i face-smile
|
||
|
|
||
|
else
|
||
|
echo -e "/n Please run this script by root..."
|
||
|
notify-send "Please run this script by root..." -i notification
|
||
|
fi
|
||
|
|
||
|
|