#!/bin/bash set -e PACKAGE_NAME=lliurex-artwork-gdm-infantil GDM_SETTINGS=/var/lib/gdm/.gconf.defaults/%gconf-tree.xml LLIUREX_SETTINGS=/var/lib/gdm/.gconf.defaults/%gconf-tree.infantil case $1 in remove|purge|abort-install|disappear) update-alternatives \ --remove $PACKAGE_NAME \ $LLIUREX_SETTINGS || true rc=0 update-alternatives --list $PACKAGE_NAME || rc=$? if [ "$rc" != "0" ] ; then if [ -f "${GDM_SETTINGS}.real" ] ; then rm -f "${GDM_SETTINGS}" dpkg-divert --package $PACKAGE_NAME --rename --quiet --remove "${GDM_SETTINGS}" ||true fi fi ;; esac #DEBHELPER# exit 0