* debian/lubuntu-plymouth-theme.postinst
debian/lubuntu-plymouth-theme.postrm - Update to the new way to set the default plymouth theme (LP: #550011)
This commit is contained in:
parent
0125b3cd76
commit
4cc68243bb
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -2,6 +2,9 @@ lubuntu-artwork (0.5) UNRELEASED; urgency=low
|
|||||||
|
|
||||||
* Update logo with the new branding.
|
* Update logo with the new branding.
|
||||||
* lubuntu-logo.script: Backport changes made on ubuntu-logo.script.
|
* 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 <gilir@ubuntu.com> Sat, 13 Mar 2010 18:29:26 +0100
|
-- Julien Lavergne <gilir@ubuntu.com> Sat, 13 Mar 2010 18:29:26 +0100
|
||||||
|
|
||||||
|
10
debian/lubuntu-plymouth-theme.postinst
vendored
10
debian/lubuntu-plymouth-theme.postinst
vendored
@ -18,8 +18,14 @@
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
# FIXME: do this with alternatives
|
update-alternatives \
|
||||||
/usr/sbin/plymouth-set-default-theme --rebuild-initrd lubuntu-logo
|
--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)
|
abort-upgrade|abort-deconfigure|abort-remove)
|
||||||
|
63
debian/lubuntu-plymouth-theme.postrm
vendored
63
debian/lubuntu-plymouth-theme.postrm
vendored
@ -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:
|
||||||
|
# <postrm> remove
|
||||||
set -e
|
#
|
||||||
|
# After the package was purged:
|
||||||
# summary of how this script can be called:
|
# <postrm> purge
|
||||||
# * <postrm> `remove'
|
#
|
||||||
# * <postrm> `purge'
|
# After the package was upgraded:
|
||||||
# * <old-postrm> `upgrade' <new-version>
|
# <old-postrm> upgrade <new-version>
|
||||||
# * <new-postrm> `failed-upgrade' <old-version>
|
# if that fails:
|
||||||
# * <new-postrm> `abort-install'
|
# <new-postrm> failed-upgrade <old-version>
|
||||||
# * <new-postrm> `abort-install' <old-version>
|
#
|
||||||
# * <new-postrm> `abort-upgrade' <old-version>
|
#
|
||||||
# * <disappearer's-postrm> `disappear' <overwriter>
|
# After all of the packages files have been replaced:
|
||||||
# <overwriter-version>
|
# <postrm> disappear <overwriting-package> <version>
|
||||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
#
|
||||||
# the debian-policy package
|
#
|
||||||
|
# If preinst fails during install:
|
||||||
|
# <new-postrm> abort-install
|
||||||
|
#
|
||||||
|
# If preinst fails during upgrade of removed package:
|
||||||
|
# <new-postrm> abort-install <old-version>
|
||||||
|
#
|
||||||
|
# If preinst fails during upgrade:
|
||||||
|
# <new-postrm> abort-upgrade <old-version>
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
purge|remove)
|
remove)
|
||||||
# FIXME: do this with alternatives
|
update-alternatives \
|
||||||
/usr/sbin/plymouth-set-default-theme --rebuild-initrd ubuntu-logo
|
--remove default.plymouth /lib/plymouth/themes/lubuntu-logo/lubuntu-logo.plymouth
|
||||||
|
|
||||||
|
if which update-initramfs >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
update-initramfs -u
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
purge)
|
||||||
|
;;
|
||||||
|
|
||||||
|
upgrade|failed-upgrade|disappear)
|
||||||
|
;;
|
||||||
|
|
||||||
|
abort-install|abort-upgrade)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
@ -34,5 +54,4 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user