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
12b2cdec
Commit
12b2cdec
authored
Apr 25, 2014
by
Felix Eckhofer
🤹🏼
Browse files
Add note about updating initramfs and grub
parent
b1d0b918
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/paint-it-black.sh
View file @
12b2cdec
...
...
@@ -4,17 +4,21 @@
# and feel but that weird purple certainly is not among those.
# -- felix@tribut.de
notice
()
{
echo
"
$@
"
>
&2
}
sedfilter
()
{
SOURCE
=
"
$1
"
FILTER
=
"
$2
"
[
-w
"
$SOURCE
"
]
||
{
echo
"
$SOURCE
not writeable"
>
&2
;
return
1
;
}
[
-w
"
$SOURCE
"
]
||
{
notice
"
$SOURCE
not writeable"
;
return
1
;
}
TEMPFILE
=
"
`
mktemp
`
"
cp
"
$SOURCE
"
"
$TEMPFILE
"
&&
sed
-r
"
$FILTER
"
<
"
$TEMPFILE
"
>
"
$SOURCE
"
RETCODE
=
"
$?
"
if
[
0
-eq
"
$RETCODE
"
]
;
then
echo
"
$SOURCE
: done, the changes are as follows:"
>
&2
notice
"
$SOURCE
: done, the changes are as follows:"
diff
-u
"
$TEMPFILE
"
"
$SOURCE
"
>
&2
fi
...
...
@@ -31,3 +35,5 @@ sedfilter \
sedfilter
\
/lib/plymouth/themes/ubuntu-text/ubuntu-text.plymouth
\
's/^black=0x[a-fA-F0-9]{6}/black=0x000000/'
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