Files
desktop-base/debian/postinst
Yves-Alexis Perez 2c90f14574 * backgrounds:
- add SpaceFun wallpaper
* slashy:
  - add SpaceFun theme
* debian/postinst:
  - add SpaceFun alternative at maximum level (default Squeeze theme)
2010-11-09 21:06:53 +00:00

77 lines
2.5 KiB
Bash

#!/bin/bash -e
#DEBHELPER#
if [ "${1}" = "configure" ] && [ "$2" != "" ] ; then
if dpkg --compare-versions ${2} lt 0.3.11 && dpkg --compare-versions ${2} gt 0.3.5; then
if test -x /var/lib/dpkg/info/libgnome2-common.postinst; then
/var/lib/dpkg/info/libgnome2-common.postinst configure
fi
fi
fi
if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
# Alternatives for the background
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background \
/usr/share/images/desktop-base/spacefun-wallpaper.svg 60
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background \
/usr/share/images/desktop-base/moreblue-orbit-wallpaper.svg 55
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background \
/usr/share/images/desktop-base/moreblue-orbit-wallpaper-widescreen.svg 50
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background \
/usr/share/images/desktop-base/nightly-wallpaper.png 45
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background \
/usr/share/images/desktop-base/debian-blueish-wallpaper.svg 35
# Alternatives for the splash
update-alternatives --install \
/usr/share/images/desktop-base/desktop-splash \
desktop-splash \
/usr/share/images/desktop-base/moreblue-orbit-splash.png 50
update-alternatives --install \
/usr/share/images/desktop-base/desktop-splash \
desktop-splash \
/usr/share/images/desktop-base/gnome-splash-curves.png 40
# Alternatives for grub
update-alternatives --install \
/usr/share/images/desktop-base/desktop-grub \
desktop-grub \
/usr/share/images/desktop-base/spacefun-grub.png 15
update-alternatives --install \
/usr/share/images/desktop-base/desktop-grub \
desktop-grub \
/usr/share/images/desktop-base/moreblue-orbit-grub.png 10
# GRUB background
if which update-grub2 > /dev/null ; then
update-grub2 || true
fi
if [ -x /sbin/splashy_config ] && [ -w /etc/splashy/config.xml ]; then
splashy_config --set-theme spacefun
fi
if [ -x /usr/sbin/update-initramfs ]; then
update-initramfs -u
fi
fi