#!/bin/bash set -e PACKAGE_NAME=lliurex-software-center UBUNTU_MENU=/usr/share/app-install/desktop/software-center.menu LLIUREX_MENU=/usr/share/app-install/desktop/software-center.menu.lliurex case $1 in configure) if [ ! -f ${UBUNTU_MENU}.real ] ; then if dpkg-divert --package $PACKAGE_NAME --rename --quiet --add --divert ${UBUNTU_MENU}.real ${UBUNTU_MENU} ; then ln -fs ${LLIUREX_MENU} ${UBUNTU_MENU} else echo "Unable to divert file \"$UBUNTU_MENU\"" >&2 fi fi update-alternatives \ --install $UBUNTU_MENU $PACKAGE_NAME \ $LLIUREX_MENU 100 || true ;; esac update-software-center #DEBHELPER# exit 0