#!/bin/sh
# Debian xserver-xorg package pre-installation script
# Copyright 2003, 2004 Branden Robinson.
# Licensed under the GNU General Public License, version 2.  See the file
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.


set -e

THIS_PACKAGE=xserver-xorg
THIS_SCRIPT=preinst

#INCLUDE_SHELL_LIB#

CONFIG_DIR=/etc/X11
SERVER_SYMLINK="$CONFIG_DIR/X"
CONFIG_AUX_DIR=/var/lib/x11
THIS_SERVER=/usr/bin/Xorg

if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
  # create the configuration files directory if it doesn't exist
  if ! [ -e "$CONFIG_DIR" ]; then
    observe "creating $CONFIG_DIR"
    mkdir --mode=755 --parents "$CONFIG_DIR"
  fi
fi

#DEBHELPER#

exit 0

# vim:set ai et sts=2 sw=2 tw=0:
