#!/bin/sh DISPLAY=":0" XORG_CONF=" -config @DATADIR@/etc/X11/xorg.conf -configdir /opt/etc/X11/xorg.conf.d " OTHER_OPTIONS=" -ac -noreset -r +accessx 0" udevadm trigger --subsystem-match=input & if [ -e ~/.xinitrc ]; then XINITRC=~/.xinitrc else XINITRC=@PREFIX@/etc/X11/xinitrc fi XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} " if [ "$1" = "--gdb" ]; then gdb --args Xorg ${XSERVER_OPTIONS} else if [ "$1" = "--only" ]; then Xorg ${XSERVER_OPTIONS} & else xinit ${XINITRC} -- @PREFIX@/bin/Xorg ${XSERVER_OPTIONS} & fi fi