Commit a007d62e authored by Felix Eckhofer's avatar Felix Eckhofer 🤹🏼
Browse files

Fix script on ubuntu pre-xenial

parent 05e6e742
Pipeline #148 skipped
...@@ -26,14 +26,17 @@ sedfilter() { ...@@ -26,14 +26,17 @@ sedfilter() {
return "$RETCODE" return "$RETCODE"
} }
THEMEDIR="/usr/share/plymouth/themes" # xenial and up
[ -f "$THEMEDIR/ubuntu-logo/ubuntu-logo.grub" ] || THEMEDIR="/lib/plymouth/themes" # until wily
sedfilter \ sedfilter \
/usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.grub \ "$THEMEDIR/ubuntu-logo/ubuntu-logo.grub" \
's/background_color [0-9]+,[0-9]+,[0-9]+/background_color 0,0,0/' 's/background_color [0-9]+,[0-9]+,[0-9]+/background_color 0,0,0/'
sedfilter \ sedfilter \
/usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.script \ "$THEMEDIR/ubuntu-logo/ubuntu-logo.script" \
's/^(Window.SetBackground(Top|Bottom)Color ?)\(0\.[0-9]{1,2}, 0\.[0-9]{1,2}, 0\.[0-9]{1,2}\)/\1(0.00, 0.00, 0.00)/' 's/^(Window.SetBackground(Top|Bottom)Color ?)\(0\.[0-9]{1,2}, 0\.[0-9]{1,2}, 0\.[0-9]{1,2}\)/\1(0.00, 0.00, 0.00)/'
sedfilter \ sedfilter \
/usr/share/plymouth/themes/ubuntu-text/ubuntu-text.plymouth \ "$THEMEDIR/ubuntu-text/ubuntu-text.plymouth" \
's/^black=0x[a-fA-F0-9]{6}/black=0x000000/' 's/^black=0x[a-fA-F0-9]{6}/black=0x000000/'
notice "You may want to run 'update-initramfs -u -k all && update-grub' now :)" notice "You may want to run 'update-initramfs -u -k all && update-grub' now :)"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment