2
# Debian xserver-xorg package post-installation script
3
# Copyright 1998-2004 Branden Robinson.
4
# Copyright 2004-2005 Canonical Ltd.
5
# Licensed under the GNU General Public License, version 2. See the file
6
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
7
# Acknowledgements to Stephen Early, Mark Eichin, and Manoj Srivastava.
11
THIS_PACKAGE=xserver-xorg
16
if [ -e /etc/default/xorg ]; then
21
# Syntax: debug_echo message ...
22
if [ -n "$DEBUG_XORG_DEBCONF" ] || [ "$DEBCONF_DEBUG" = "user" ] \
23
|| [ "$DEBCONF_DEBUG" = '.*' ]; then
24
DEBUG_XORG_PACKAGE="yes" observe "$*"
29
CONFIG_AUX_DIR=/var/lib/x11
30
SERVER_SYMLINK="$CONFIG_DIR/X"
31
XORGCONFIG="$CONFIG_DIR/xorg.conf"
32
CONFIG_AUX_DIR="/var/lib/x11"
33
SERVER_SYMLINK_CHECKSUM="$CONFIG_AUX_DIR/${SERVER_SYMLINK##*/}.md5sum"
34
SERVER_SYMLINK_ROSTER="$CONFIG_AUX_DIR/${SERVER_SYMLINK##*/}.roster"
35
XORGCONFIG_CHECKSUM="$CONFIG_AUX_DIR/${XORGCONFIG##*/}.md5sum"
36
XORGCONFIG_ROSTER="$CONFIG_AUX_DIR/${XORGCONFIG##*/}.roster"
37
THIS_SERVER=/usr/bin/Xorg
39
debug_report_status () {
40
# Syntax: debug_report_status command exit_status
41
debug_echo "$1 exited with status $2"
44
debug_echo "Configuring $THIS_PACKAGE."
48
# only mess with the server symlink file if it does not exist. otherwise,
49
# assume that's the way the user wants it.
50
if ! [ -e "$SERVER_SYMLINK" ]; then
51
ln -s "$THIS_SERVER" "$SERVER_SYMLINK"
52
# recover from an old bug
53
elif [ `readlink "$SERVER_SYMLINK"` = "/bin/true" ]; then
54
rm -f "$SERVER_SYMLINK"
55
ln -s "$THIS_SERVER" "$SERVER_SYMLINK"
60
# vim:set ai et sts=2 sw=2 tw=0: