#! /bin/sh set -e SYSTEM_LOGO="/usr/share/unity-greeter/logo.png" SYSTEM_WALLPAPER="/usr/share/backgrounds/warty-final-ubuntu.png" OUR_LOGO="/usr/share/lliurex-minimal-zen-artwork/logos/lightdm.png" OUR_WALLPAPER="/usr/share/lliurex-minimal-zen-artwork/backgrounds/zen-wallpaper.png" case "$1" in configure|upgrade) dpkg-divert --package lliurex-minimal-zen-artwork-gva --rename --quiet --add --divert ${SYSTEM_LOGO}.real ${SYSTEM_LOGO} || true ln -fs ${OUR_LOGO} ${SYSTEM_LOGO} dpkg-divert --package lliurex-minimal-zen-artwork-gva --rename --quiet --add --divert ${SYSTEM_WALLPAPER}.real ${SYSTEM_WALLPAPER} || true ln -fs ${OUR_WALLPAPER} ${SYSTEM_WALLPAPER} if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then echo "Nothing to do" # /usr/lib/lightdm/lightdm-set-defaults --keep-old --session=ubuntustudio || true # /usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=lightdm-gtk-greeter || true fi ;; esac if [ "$1" = "configure" ] ; then update-alternatives --install /etc/lightdm/lightdm-gtk-greeter.conf \ lightdm-gtk-greeter-config-derivative \ /etc/xdg/xdg-lliurex/lightdm/lightdm-gtk-greeter.conf 40 fi #DEBHELPER#