Update file run_onchange_after_61-plymouth-settings.tmpl

This commit is contained in:
Brian Zalewski 2023-02-01 21:03:35 +00:00
parent 6d26bf6b30
commit 830bbbd176

View file

@ -28,7 +28,7 @@ fi
if [ -f /etc/plymouth/plymouthd.conf ]; then
logg info 'Setting ShowDelay=1 in /etc/plymouth/plymouthd.conf'
if cat /etc/plymouth/plymouthd.conf | grep ShowDelay; then
sudo sed -i '/^ShowDelay=.*/ShowDelay=1/' /etc/plymouth/plymouthd.conf
sudo sed -i 's/^ShowDelay=.*/ShowDelay=1/' /etc/plymouth/plymouthd.conf
else
echo 'ShowDelay=1' | sudo tee -a /etc/plymouth/plymouthd.conf
fi
@ -36,6 +36,12 @@ else
logg warn '/etc/plymouth/plymouthd.conf does not exist!'
fi
### Symlink /usr/local/share/plymouth/themes to /usr/share/plymouth/themes
if [ ! -d '/usr/share/plymouth/themes/{{ .theme }}' ]; then
logg info 'Symlinking /usr/local/share/plymouth/themes/{{ .theme }} to /usr/share/plymouth/themes/{{ .theme }}'
sudo ln -s '/usr/local/share/plymouth/themes/{{ .theme }}' '/usr/share/plymouth/themes/{{ .theme }}'
fi
### Set default Plymouth theme
if command -v plymouth-set-default-theme > /dev/null; then
sudo plymouth-set-default-theme -R '{{ .theme }}' || EXIT_CODE=$?