Update file run_onchange_after_61-plymouth-settings.tmpl
This commit is contained in:
parent
6d26bf6b30
commit
830bbbd176
1 changed files with 7 additions and 1 deletions
|
@ -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=$?
|
||||
|
|
Loading…
Reference in a new issue