#!/bin/bash set -e if [ "$1" = "remove" ] ; then update-alternatives \ --remove lliurex-default-background.png /usr/share/backgrounds/lliurex/lliurex16-classroom-HD.png update-alternatives --auto lliurex-default-background.png PKG="lliurex-artwork-defaults-aula" ORIGINAL_LO_FILE="/usr/lib/libreoffice/program/soffice" NEW_DIVERTED_LO_FILE="/usr/lib/libreoffice/program/soffice.diverted" LLIUREX_FILE="/usr/lib/libreoffice/program/soffice-nolock" if [ -L "$ORIGINAL_LO_FILE" ]; then rm -rf "$ORIGINAL_LO_FILE" || true dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_LO_FILE" "$ORIGINAL_LO_FILE" fi fi #DEBHELPER# exit 0