diff --git a/debian/changelog b/debian/changelog index a6bf64d..b0b0720 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ lubuntu-artwork (0.5) UNRELEASED; urgency=low * Update logo with the new branding. * lubuntu-logo.script: Backport changes made on ubuntu-logo.script. + * debian/lubuntu-plymouth-theme.postinst + debian/lubuntu-plymouth-theme.postrm + - Update to the new way to set the default plymouth theme (LP: #550011) -- Julien Lavergne Sat, 13 Mar 2010 18:29:26 +0100 diff --git a/debian/lubuntu-plymouth-theme.postinst b/debian/lubuntu-plymouth-theme.postinst index c164212..dfc40c3 100644 --- a/debian/lubuntu-plymouth-theme.postinst +++ b/debian/lubuntu-plymouth-theme.postinst @@ -18,8 +18,14 @@ case "$1" in configure) - # FIXME: do this with alternatives - /usr/sbin/plymouth-set-default-theme --rebuild-initrd lubuntu-logo + update-alternatives \ + --install /lib/plymouth/themes/default.plymouth default.plymouth \ + /lib/plymouth/themes/lubuntu-logo/lubuntu-logo.plymouth 150 + + if which update-initramfs >/dev/null 2>&1 + then + update-initramfs -u + fi ;; abort-upgrade|abort-deconfigure|abort-remove) diff --git a/debian/lubuntu-plymouth-theme.postrm b/debian/lubuntu-plymouth-theme.postrm index 7ea3981..3c8a812 100644 --- a/debian/lubuntu-plymouth-theme.postrm +++ b/debian/lubuntu-plymouth-theme.postrm @@ -1,30 +1,50 @@ -#!/bin/sh +#!/bin/sh -e +# This script can be called in the following ways: # -# see: dh_installdeb(1) +# After the package was removed: +# remove +# +# After the package was purged: +# purge +# +# After the package was upgraded: +# upgrade +# if that fails: +# failed-upgrade +# +# +# After all of the packages files have been replaced: +# disappear +# +# +# If preinst fails during install: +# abort-install +# +# If preinst fails during upgrade of removed package: +# abort-install +# +# If preinst fails during upgrade: +# abort-upgrade -set -e -# summary of how this script can be called: -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package +case "$1" in + remove) + update-alternatives \ + --remove default.plymouth /lib/plymouth/themes/lubuntu-logo/lubuntu-logo.plymouth + + if which update-initramfs >/dev/null 2>&1 + then + update-initramfs -u + fi + ;; + purge) + ;; -case "$1" in - purge|remove) - # FIXME: do this with alternatives - /usr/sbin/plymouth-set-default-theme --rebuild-initrd ubuntu-logo + upgrade|failed-upgrade|disappear) ;; - upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + abort-install|abort-upgrade) ;; *) @@ -34,5 +54,4 @@ case "$1" in esac #DEBHELPER# - exit 0