Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Eckhofer
tools
Commits
a007d62e
Commit
a007d62e
authored
Apr 16, 2016
by
Felix Eckhofer
🤹🏼
Browse files
Fix script on ubuntu pre-xenial
parent
05e6e742
Pipeline
#148
skipped
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
scripts/paint-it-black.sh
View file @
a007d62e
...
@@ -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 :)"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment