From 5efcde90acbc869f8961d639b217b197be8eeb9e Mon Sep 17 00:00:00 2001 From: Julien Lavergne Date: Tue, 16 Feb 2010 03:01:04 +0100 Subject: [PATCH] debian/lubuntu-plymouth-theme.postinst & postrm: Set lubuntu-logo as default plymouth settings, and reset it to ubuntu-logo after removal. --- debian/changelog | 4 +-- debian/lubuntu-plymouth-theme.postrm | 38 ++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 debian/lubuntu-plymouth-theme.postrm diff --git a/debian/changelog b/debian/changelog index 253a1eb..a8e0a39 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,8 +4,8 @@ lubuntu-artwork (0.4) UNRELEASED; urgency=low * debian/control : Add a plymouth theme binary. * debian/*.install & *.links: Reorganize with the new binary. * debian/rules: Install in debian/tmp and use dh_install for installation. - * debian/lubuntu-plymouth-theme.postinst: Set lubuntu-logo as default - plymouth settings. + * debian/lubuntu-plymouth-theme.postinst & postrm: Set lubuntu-logo as + default plymouth settings, and reset it to ubuntu-logo after removal. * Switch to a Lubuntu custom theme, made by Rafael Laguna. - Add a lubuntu-logo plymouth theme, based on the ubuntu-logo. - Add a custom logo-banner.png, lubuntu-logo.png and panel wallpaper. diff --git a/debian/lubuntu-plymouth-theme.postrm b/debian/lubuntu-plymouth-theme.postrm new file mode 100644 index 0000000..7ea3981 --- /dev/null +++ b/debian/lubuntu-plymouth-theme.postrm @@ -0,0 +1,38 @@ +#!/bin/sh +# +# see: dh_installdeb(1) + +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 + purge|remove) + # FIXME: do this with alternatives + /usr/sbin/plymouth-set-default-theme --rebuild-initrd ubuntu-logo + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "$0 called with unknown argument \`$1'" 1>&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0