source: proiecte/PPPP/gdm/debian/gdm.config @ 134

Last change on this file since 134 was 134, checked in by (none), 14 years ago

gdm sources with the modifications for webcam

File size: 1.1 KB
Line 
1#!/bin/sh
2# Debian gdm package configuration script
3# Copyright 2000-2001 Branden Robinson.
4# Licensed under the GNU General Public License, version 2.  See the file
5# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
6
7set -e
8
9# source debconf library
10. /usr/share/debconf/confmodule
11
12THIS_PACKAGE=gdm
13DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
14
15# set default display manager
16
17db_get shared/default-x-display-manager
18OLD_DEFAULT="$RET"
19
20db_metaget shared/default-x-display-manager owners
21OWNERS="$RET"
22db_metaget shared/default-x-display-manager choices
23CHOICES="$RET"
24
25if [ "$OWNERS" != "$CHOICES" ]; then
26  db_subst shared/default-x-display-manager choices $OWNERS
27  db_fset shared/default-x-display-manager seen false
28fi
29
30db_input high shared/default-x-display-manager || true
31db_go
32
33# using this display manager?
34db_get shared/default-x-display-manager
35CURRENT_DEFAULT="$RET"
36# remove the default display manager file if we're going to change it
37if [ "$OLD_DEFAULT" != "$CURRENT_DEFAULT" ]; then
38  rm -f $DEFAULT_DISPLAY_MANAGER_FILE
39fi
40
41exit 0
Note: See TracBrowser for help on using the repository browser.