5 XORG_CONF=" -config /etc/X11/xorg.conf -configdir /etc/X11/xorg.conf.d "
6 OTHER_OPTIONS=" -logfile ${LOGDIR}/Xorg.0.log -ac -noreset +accessx 0 +dpmsphone "
8 #run script to enable gl
9 if [ -e /usr/bin/opengl-es-setup-mali-env.sh ]; then
10 /usr/bin/opengl-es-setup-mali-env.sh
13 #backup previous Xorg.0.log file
14 if [ -e ${LOGDIR}/Xorg.0.log ]; then
15 mv ${LOGDIR}/Xorg.0.log ${LOGDIR}/prev.Xorg.0.log
18 #backup previous Xorg.0.log.old file
19 if [ -e ${LOGDIR}/Xorg.0.log.old ]; then
20 mv ${LOGDIR}/Xorg.0.log.old ${LOGDIR}/prev.Xorg.0.log.old
23 if [ -e ~/.xinitrc ]; then
26 XINITRC=/etc/X11/xinitrc
29 XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} "
31 if [ "$1" = "--gdb" ]; then
32 if [ -x /usr/bin/pvrsrvinit ]; then
35 gdb --args Xorg ${XSERVER_OPTIONS}
37 if [ "$1" = "--only" ]; then
38 if [ -x /usr/bin/pvrsrvinit ]; then
42 Xorg ${XSERVER_OPTIONS} &
44 export WMRC=/etc/X11/wmrc
45 export WMUSERID=`id -u app`
46 export WMGROUPID=`id -g app`
48 export WMUSERHOME=/opt/home/app
50 xinit ${XINITRC} -- @PREFIX@/bin/Xorg ${XSERVER_OPTIONS} &