#!/bin/bash set -e #VARS PACKAGE_NAME=lliurex-wine-class-settings WINE_SETTINGS=/usr/bin/wine CAUTIOUS_SETTINGS=/usr/bin/cautious-launcher LLIUREX_SETTINGS=/usr/share/lliurex-wine/wine LLIUREX_CAUTIOUS_SETTINGS=/usr/share/lliurex-wine/cautious-launcher case $1 in configure) if [ ! -f ${WINE_SETTINGS}.real ] ; then if dpkg-divert --package $PACKAGE_NAME --rename --quiet --add --divert ${WINE_SETTINGS}.real ${WINE_SETTINGS} ; then ln -fs ${LLIUREX_SETTINGS} ${WINE_SETTINGS} else echo "Unable to divert file \"$WINE_SETTINGS\"" >&2 fi fi ;; esac #DEBHELPER# exit 0