install.sh: Always install the Onefinity theme

This commit is contained in:
David Carley
2022-09-05 09:34:49 +00:00
parent ac52b141bd
commit 884ee1c683

View File

@@ -116,11 +116,12 @@ if [ ! -e ~pi/.ratpoisonrc ]; then
fi fi
# Configure the Plymouth graphical bootloader with the Onefinity theme # Configure the Plymouth graphical bootloader with the Onefinity theme
if [ ! -e /usr/share/plymouth/themes/onefinity/onefinity.plymouth ]; then rm -rf /usr/share/plymouth/themes/buildbotics
rm -rf /usr/share/plymouth/themes/onefinity
mkdir -p /usr/share/plymouth/themes/onefinity/ mkdir -p /usr/share/plymouth/themes/onefinity/
cp -av installer/splash/* /usr/share/plymouth/themes/onefinity/ cp -av installer/splash/* /usr/share/plymouth/themes/onefinity/
plymouth-set-default-theme -R onefinity plymouth-set-default-theme -R onefinity
fi
grep 'quiet splash plymouth.ignore-serial-consoles logo.nologo' /boot/cmdline.txt >/dev/null grep 'quiet splash plymouth.ignore-serial-consoles logo.nologo' /boot/cmdline.txt >/dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -n " quiet splash plymouth.ignore-serial-consoles logo.nologo" >> /boot/cmdline.txt echo -n " quiet splash plymouth.ignore-serial-consoles logo.nologo" >> /boot/cmdline.txt