source: lliurex-lightdm-theme/trunk/fuentes/debian/prerm

Last change on this file was 4809, checked in by mabarracus, 4 years ago

Set lightdm background to work with debian alternatives system

  • Property svn:executable set to *
File size: 701 bytes
RevLine 
[2295]1#!/bin/sh
2
3set -e
4
5# Template for diversions
6
7PACKAGE_NAME="lliurex-lightdm-theme"
8ORIGINAL_FILE="/etc/lightdm/lightdm-gtk-greeter.conf.d/99_ubuntu-mate.conf"
[2300]9DIVERT_FILE="/usr/share/lliurex-lightdm-theme/diversions/99_ubuntu-mate.diverted"
[2295]10
11
12
13case $1 in
14        remove|purge|abort-install|disappear)
15
16                if [ -f ${DIVERT_FILE} ] ; then
17                        dpkg-divert --package  ${PACKAGE_NAME} --rename --quiet --remove ${ORIG_FILE}|| true
18                fi
[4809]19                update-alternatives --remove lightdm-bg /usr/share/backgrounds/lliurex/lliurex-blueprint.png
[2295]20                ;;
21        *)
22                echo "Nothing to do"
23                ;;
24esac
25
26#DEBHELPER#
27
28exit 0
29
Note: See TracBrowser for help on using the repository browser.