~ubuntu-branches/ubuntu/precise/xdm/precise

« back to all changes in this revision

Viewing changes to debian/xdm.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2008-10-05 20:55:43 UTC
  • mfrom: (7.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081005205543-t9lgih96kbj1eidd
Tags: 1:1.1.8-5
Updated Polish debconf translation, thanks to Łukasz Paździora
(closes: #499073).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#INCLUDE_SHELL_LIB#
19
19
 
20
20
OBSOLETE_CONFFILES="pixmaps/XFree86.xpm pixmaps/XFree86bw.xpm pixmaps/debian.xpm pixmaps/debianbw.xpm pixmaps/xorg.xpm pixmaps/xorgbw.xpm"
21
 
DAEMON=/usr/bin/X11/xdm
 
21
DAEMON=/usr/bin/xdm
 
22
OLD_DAEMON=/usr/bin/X11/xdm
22
23
 
23
24
# now safe to remove old xserver dir
24
25
if [ -e /usr/X11R6/lib/X11/xdm.moved-by-preinst ]; then
55
56
      fi
56
57
    fi
57
58
    if [ -n "$DAEMON_NAME" ]; then
 
59
      if [ "$DAEMON_NAME" = "$OLD_DAEMON" ]; then
 
60
        DAEMON_NAME="$DAEMON"
 
61
      fi
58
62
      observe "committing change of default X display manager"
59
63
      echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE"
60
64
    fi
61
65
  fi
 
66
else
 
67
  DEFAULT_DISPLAY_MANAGER=$(cat "$DEFAULT_DISPLAY_MANAGER_FILE")
 
68
  if [ "$DEFAULT_DISPLAY_MANAGER" = "$OLD_DAEMON" ]; then
 
69
    observe "changing default X display manager from $OLD_DAEMON to $DAEMON"
 
70
    echo "$DAEMON" > "$DEFAULT_DISPLAY_MANAGER_FILE"
 
71
  fi
62
72
fi
63
73
 
64
74
# remove the displaced old default display manager file if it exists