#!/bin/sh set -e PACKAGE_NAME="lliurex-lightdm-theme" ORIGINAL_FILE="/etc/lightdm/lightdm-gtk-greeter.conf.d/99_ubuntu-mate.conf" DIVERT_FILE="/usr/share/lliurex-lightdm-theme/diversions/99_ubuntu-mate.diverted" case "$1" in configure) if [ ! -r ${DIVERT_FILE} ] ; then dpkg-divert --package ${PACKAGE_NAME} --rename --quiet --add --divert ${DIVERT_FILE} ${ORIGINAL_FILE} fi update-alternatives --install /usr/share/backgrounds/lliurex/lightdm-bg.png lightdm-bg /usr/share/backgrounds/lliurex/lliurex-blueprint.png 50 ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) exit 1 ;; esac #DEBHELPER# exit 0