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>.
9
# source debconf library
10
. /usr/share/debconf/confmodule
13
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
15
# set default display manager
17
db_get shared/default-x-display-manager
20
db_metaget shared/default-x-display-manager owners
22
db_metaget shared/default-x-display-manager choices
25
if [ "$OWNERS" != "$CHOICES" ]; then
26
db_subst shared/default-x-display-manager choices $OWNERS
27
db_fset shared/default-x-display-manager seen false
30
db_input high shared/default-x-display-manager || true
33
# using this display manager?
34
db_get shared/default-x-display-manager
35
CURRENT_DEFAULT="$RET"
36
# remove the default display manager file if we're going to change it
37
if [ "$OLD_DEFAULT" != "$CURRENT_DEFAULT" ]; then
38
rm -f $DEFAULT_DISPLAY_MANAGER_FILE