source: trunk/debathena/config/cluster-login-config/debian/debathena-cluster-login-config.postrm @ 24668

Revision 24668, 1.3 KB checked in by broder, 14 years ago (diff)
In cluster-login-config: * Replace /sbin/getty instead of diverting the tty jobs. * Use ConsoleKit to activate the user's session instead of telling them to press a key combo. (Trac: #547)
Line 
1#!/bin/sh
2# postrm script for debathena-cluster-login-config
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9#        * <postrm> `remove'
10#        * <postrm> `purge'
11#        * <old-postrm> `upgrade' <new-version>
12#        * <new-postrm> `failed-upgrade' <old-version>
13#        * <new-postrm> `abort-install'
14#        * <new-postrm> `abort-install' <old-version>
15#        * <new-postrm> `abort-upgrade' <old-version>
16#        * <disappearer's-postrm> `disappear' <overwriter>
17#          <overwriter-version>
18# for details, see http://www.debian.org/doc/debian-policy/ or
19# the debian-policy package
20
21rm_conffile() {
22    local PKGNAME="$1" # Unused
23    local CONFFILE="$2"
24
25    if [ -f "$CONFFILE".dpkg-del ]; then
26        mv -f "$CONFFILE".dpkg-del "$CONFFILE"
27    fi
28}
29
30case "$1" in
31    abort-install|abort-upgrade)
32        if dpkg --compare-versions "$2" lt 1.24~; then
33            rm_conffile debathena-cluster-login-config "/etc/event.d/ttymsg"
34            rm_conffile debathena-cluster-login-config "/etc/init/ttymsg.conf"
35        fi
36    ;;
37
38    purge|remove|upgrade|failed-upgrade|disappear)
39    ;;
40
41    *)
42        echo "postrm called with unknown argument \`$1'" >&2
43        exit 1
44    ;;
45esac
46
47# dh_installdeb will replace this with shell code automatically
48# generated by other debhelper scripts.
49
50#DEBHELPER#
51
52exit 0
53
54
Note: See TracBrowser for help on using the repository browser.