source: lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-desktop.prerm @ 1715

Last change on this file since 1715 was 1715, checked in by hectorgh, 4 years ago

removing xubuntu sessions

File size: 564 bytes
Line 
1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = remove ] ; then
7        PKG="lliurex-artwork-defaults-desktop"
8        ORIGINAL_UNITY_FILE="/usr/share/xsessions/xubuntu.desktop"
9        NEW_DIVERTED_FILE="/usr/share/diverted-sessions/xubuntu.desktop"
10        dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE"
11
12
13        ORIGINAL_UNITY_FILE="/usr/share/xsessions/xfce.desktop"
14        NEW_DIVERTED_FILE="/usr/share/diverted-sessions/xfce.desktop"
15        dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_UNITY_FILE"
16
17fi
18#DEBHELPER#
19
20exit 0
Note: See TracBrowser for help on using the repository browser.