Commit 24fbde0a authored by Maxime Accadia's avatar Maxime Accadia
Browse files

Fix #2

Le hook initramfs ne semble pas toujours s'executer. On remplace donc 
aussi le logo dans le theme spinner.
parent c66ae6de
#!/bin/bash
LEGACY_LOGO="/usr/share/plymouth/ubuntu-logo.png"
LEGACY_LOGOS="/usr/share/plymouth/ubuntu-logo.png /usr/share/plymouth/themes/spinner/watermark.png"
case "${1}" in
remove)
if [ -f "${LEGACY_LOGO}.backup" ]; then
mv "${LEGACY_LOGO}.backup" "${LEGACY_LOGO}"
fi
for l in $LEGACY_LOGOS; do
if [ -f "$l.backup" ]; then
echo "Restoring logo backup $l.backup"
mv "$l.backup" "$l"
fi
done
sed -i 's%^logo=.*%#logo="/usr/share/pixmaps/logo.png"%' /etc/gdm3/greeter.dconf-defaults
sed -i 's%^\(logo="/usr/share/pixmaps/logo.png\)"*%#\1"%' /etc/gdm3/greeter.dconf-defaults
if which update-initramfs >/dev/null 2>&1; then
update-initramfs -u
......
......@@ -8,9 +8,13 @@
# run without order and this should run before the plymouth hook.
LOGO_PNG="/usr/share/plymouth/logo.png"
LEGACY_LOGO="/usr/share/plymouth/ubuntu-logo.png"
LEGACY_LOGOS="/usr/share/plymouth/ubuntu-logo.png /usr/share/plymouth/themes/spinner/watermark.png"
if [ -f "${LEGACY_LOGO}" -a -f "${LOGO_PNG}" ]; then
mv "${LEGACY_LOGO}" "${LEGACY_LOGO}.backup"
cp --backup "${LOGO_PNG}" "${LEGACY_LOGO}"
fi
for l in $LEGACY_LOGOS; do
if [ -f "$l" ]; then
if ! [ -f "$l.backup" ]; then
mv "$l" "$l.backup"
cp "$LOGO_PNG" "$l"
fi
fi
done
Markdown is supported
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