#!/bin/bash set -e #VARS SYSTEM_CONFIG_SCRIPT=/usr/bin/vlc OUR_BINARY=/usr/bin/vlc-lliurex case $1 in configure) if dpkg-divert --package lliurex-vlc --rename --quiet --add --divert ${SYSTEM_CONFIG_SCRIPT}.real ${SYSTEM_CONFIG_SCRIPT} ; then ln -fs ${OUR_BINARY} ${SYSTEM_CONFIG_SCRIPT} else echo "Unable to divert file \"$SYSTEM_CONFIG_SCRIPT\"" >&2 fi ;; esac #DEBHELPER# exit 0