#!/bin/bash set -e #VARS PACKAGE_NAME=lliurex-artwork-gdm-desktop GDM_SETTINGS=/var/lib/gdm/.gconf.defaults/%gconf-tree.xml LLIUREX_SETTINGS=/var/lib/gdm/.gconf.defaults/%gconf-tree.aula case $1 in configure) chown gdm:gdm $LLIUREX_SETTINGS if [ ! -f ${GDM_SETTINGS}.real ] ; then if dpkg-divert --package $PACKAGE_NAME --rename --quiet --add --divert ${GDM_SETTINGS}.real ${GDM_SETTINGS} ; then ln -fs ${LLIUREX_SETTINGS} ${GDM_SETTINGS} else echo "Unable to divert file \"$GDM_SETTINGS\"" >&2 fi fi update-alternatives \ --install $GDM_SETTINGS $PACKAGE_NAME \ $LLIUREX_SETTINGS 151 || true ;; esac #DEBHELPER# exit 0