5 XORG_CONF=" -config @DATADIR@/etc/X11/xorg.conf -configdir /opt/etc/X11/xorg.conf.d "
6 OTHER_OPTIONS=" -logfile ${LOGDIR}/Xorg.0.log -ac -noreset -r +accessx 0 "
8 udevadm trigger --subsystem-match=drm &
9 udevadm trigger --subsystem-match=input &
11 #check the existence of LOGDIR, if not create LOGDIR
12 if [ ! -d ${LOGDIR} ]; then
16 #backup previous Xorg.0.log file
17 if [ -e ${LOGDIR}/Xorg.0.log ]; then
18 mv ${LOGDIR}/Xorg.0.log ${LOGDIR}/prev.Xorg.0.log
21 #backup previous Xorg.0.log.old file
22 if [ -e ${LOGDIR}/Xorg.0.log.old ]; then
23 mv ${LOGDIR}/Xorg.0.log.old ${LOGDIR}/prev.Xorg.0.log.old
26 if [ ! -e /opt/etc/X11/xorg.conf.d ]; then
27 ln -s /opt/etc/X11/xorg.conf.d.default /opt/etc/X11/xorg.conf.d
30 if [ -e ~/.xinitrc ]; then
33 XINITRC=@PREFIX@/etc/X11/xinitrc
36 XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} "
38 if [ "$1" = "--gdb" ]; then
39 if [ -x /usr/bin/pvrsrvinit ]; then
42 gdb --args Xorg ${XSERVER_OPTIONS}
44 if [ "$1" = "--only" ]; then
45 if [ -x /usr/bin/pvrsrvinit ]; then
49 Xorg ${XSERVER_OPTIONS} &
51 xinit ${XINITRC} -- @PREFIX@/bin/Xorg ${XSERVER_OPTIONS} &