#!/bin/bash set -e if [ "$1" = remove ] ; then PKG="lliurex-artwork-defaults-desktop" ORIGINAL_UNITY_FILE="/usr/share/xsessions/ubuntu.desktop" NEW_DIVERTED_FILE="/usr/share/diverted-sessions/ubuntu.desktop" dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE" ORIGINAL_UNITY_FILE="/usr/share/xsessions/ubuntu-2d.desktop" NEW_DIVERTED_FILE="/usr/share/diverted-sessions/ubuntu-2d.desktop" dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE" fi #DEBHELPER# exit 0