source: lightdm-running/trunk/fuentes/debian/lightdm-running.preinst @ 325

Last change on this file since 325 was 325, checked in by hectorgh, 5 years ago

adding project files

File size: 934 bytes
Line 
1#!/bin/sh
2# preinst script for lightdm-running
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9#        * <new-preinst> `install'
10#        * <new-preinst> `install' <old-version>
11#        * <new-preinst> `upgrade' <old-version>
12#        * <old-preinst> `abort-upgrade' <new-version>
13# for details, see http://www.debian.org/doc/debian-policy/ or
14# the debian-policy package
15
16
17case "$1" in
18    install|upgrade)
19   
20        if [ "$1" = "upgrade" ]; then
21       
22                if dpkg --compare-versions "$2" le 0.10 ; then
23                        rm /etc/lightdm/lightdm.conf || true
24                        rm /etc/lightdm/exitsession || true
25                        rm /etc/lightdm/presession || true
26                fi
27               
28               
29       
30        fi
31       
32       
33       
34    ;;
35    abort-upgrade)
36    ;;
37   
38   
39
40    *)
41        echo "preinst called with unknown argument \`$1'" >&2
42        exit 1
43    ;;
44esac
45
46# dh_installdeb will replace this with shell code automatically
47# generated by other debhelper scripts.
48
49#DEBHELPER#
50
51exit 0
Note: See TracBrowser for help on using the repository browser.