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

Add note about updating initramfs and grub

parent b1d0b918
...@@ -4,17 +4,21 @@ ...@@ -4,17 +4,21 @@
# and feel but that weird purple certainly is not among those. # and feel but that weird purple certainly is not among those.
# -- felix@tribut.de # -- felix@tribut.de
notice() {
echo "$@" >&2
}
sedfilter() { sedfilter() {
SOURCE="$1" SOURCE="$1"
FILTER="$2" FILTER="$2"
[ -w "$SOURCE" ] || { echo "$SOURCE not writeable" >&2; return 1; } [ -w "$SOURCE" ] || { notice "$SOURCE not writeable"; return 1; }
TEMPFILE="`mktemp`" TEMPFILE="`mktemp`"
cp "$SOURCE" "$TEMPFILE" && sed -r "$FILTER" < "$TEMPFILE" > "$SOURCE" cp "$SOURCE" "$TEMPFILE" && sed -r "$FILTER" < "$TEMPFILE" > "$SOURCE"
RETCODE="$?" RETCODE="$?"
if [ 0 -eq "$RETCODE" ]; then 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 diff -u "$TEMPFILE" "$SOURCE" >&2
fi fi
...@@ -31,3 +35,5 @@ sedfilter \ ...@@ -31,3 +35,5 @@ sedfilter \
sedfilter \ sedfilter \
/lib/plymouth/themes/ubuntu-text/ubuntu-text.plymouth \ /lib/plymouth/themes/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 :)"
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