source: trunk/debathena/config/cluster-login-config/debian/debathena-cluster-login-config.prerm @ 23960

Revision 23960, 2.2 KB checked in by broder, 15 years ago (diff)
In cluster-login-config: * Use a persistantly running daemon to keep the ttys open instead of a one-time script. (Trac: #307) * Make sure the ttymsg job gets kicked when cluster-login-config is upgraded.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2# prerm script for #PACKAGE#
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9#        * <prerm> `remove'
10#        * <old-prerm> `upgrade' <new-version>
11#        * <new-prerm> `failed-upgrade' <old-version>
12#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13#        * <deconfigured's-prerm> `deconfigure' `in-favour'
14#          <package-being-installed> <version> `removing'
15#          <conflicting-package> <version>
16# for details, see http://www.debian.org/doc/debian-policy/ or
17# the debian-policy package
18
19
20case "$1" in
21    remove|upgrade|deconfigure)
22        perl -i'' -ne 's%^### (BEGIN|END) debathena-cluster-login-config\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
23
24        initctl stop ttymsg >/dev/null 2>&1 || true
25
26        # Undo our mandatory gconf settings.
27        gcsrc=xml:readwrite:/etc/gconf/gconf.xml.mandatory
28        gcunset="gconftool-2 --direct --config-source=$gcsrc --unset"
29        $gcunset /apps/gnome-screensaver/logout_enabled
30        $gcunset /apps/gnome-screensaver/logout_delay
31        $gcunset /apps/gnome-screensaver/logout_command
32        $gcunset /apps/gnome-screensaver/embedded_keyboard_command
33        $gcunset /apps/gnome-screensaver/embedded_keyboard_enabled
34        $gcunset /apps/gnome-screensaver/user_switch_enabled
35        $gcunset /apps/gnome-screensaver/lock_enabled
36        $gcunset /apps/gnome-screensaver/lock_delay
37        $gcunset /apps/fast-user-switch-applet/show_active_users_only
38        $gcunset /apps/fast-user-switch-applet/show_guest_login
39        $gcunset /apps/gnome-power-manager/general/can_hibernate
40        $gcunset /apps/gnome-power-manager/general/can_suspend
41
42        # Undo our default gconf settings.
43        gcsrc=xml:readwrite:/etc/gconf/gconf.xml.defaults
44        gcunset="gconftool-2 --direct --config-source=$gcsrc --unset"
45        $gcunset /desktop/gnome/session/required_components/windowmanager
46    ;;
47
48    failed-upgrade)
49    ;;
50
51    *)
52        echo "prerm called with unknown argument \`$1'" >&2
53        exit 1
54    ;;
55esac
56
57# dh_installdeb will replace this with shell code automatically
58# generated by other debhelper scripts.
59
60#DEBHELPER#
61
62exit 0
63
64
Note: See TracBrowser for help on using the repository browser.