~ubuntu-branches/ubuntu/wily/xorg/wily

« back to all changes in this revision

Viewing changes to debian/xserver-xorg.postinst.in

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2015-03-09 11:51:24 UTC
  • Revision ID: package-import@ubuntu.com-20150309115124-2gvv2bn6xyd6c7y4
Tags: 1:7.7+7ubuntu3
* Modesetting has been removed, remove from vars.
* Do not require vesa on armhf, only fbdev is useful.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
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.
8
 
 
9
 
set -e
10
 
 
11
 
THIS_PACKAGE=xserver-xorg
12
 
THIS_SCRIPT=postinst
13
 
 
14
 
#INCLUDE_SHELL_LIB#
15
 
 
16
 
if [ -e /etc/default/xorg ]; then
17
 
  . /etc/default/xorg
18
 
fi
19
 
 
20
 
debug_echo () {
21
 
  # Syntax: debug_echo message ...
22
 
  if [ -n "$DEBUG_XORG_DEBCONF" ] || [ "$DEBCONF_DEBUG" = "user" ] \
23
 
    || [ "$DEBCONF_DEBUG" = '.*' ]; then
24
 
    DEBUG_XORG_PACKAGE="yes" observe "$*"
25
 
  fi
26
 
}
27
 
 
28
 
CONFIG_DIR="/etc/X11"
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
38
 
 
39
 
debug_report_status () {
40
 
  # Syntax: debug_report_status command exit_status
41
 
  debug_echo "$1 exited with status $2"
42
 
}
43
 
 
44
 
debug_echo "Configuring $THIS_PACKAGE."
45
 
 
46
 
#DEBHELPER#
47
 
 
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"
56
 
fi
57
 
 
58
 
exit 0
59
 
 
60
 
# vim:set ai et sts=2 sw=2 tw=0: