blob: b9bc71f67dfa4b2c68bfef90683e1c3a39b65495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
DISPLAY=":0"
LOGDIR="/opt/var/log"
XORG_CONF=" -config @PREFIX@/etc/X11/xorg.conf -configdir @PREFIX@/etc/X11/xorg.conf.d "
OTHER_OPTIONS=" -logfile ${LOGDIR}/Xorg.0.log -ac -noreset +accessx 0 "
#backup previous Xorg.0.log file
if [ -e ${LOGDIR}/Xorg.0.log ]; then
mv ${LOGDIR}/Xorg.0.log ${LOGDIR}/prev.Xorg.0.log
fi
#backup previous Xorg.0.log.old file
if [ -e ${LOGDIR}/Xorg.0.log.old ]; then
mv ${LOGDIR}/Xorg.0.log.old ${LOGDIR}/prev.Xorg.0.log.old
fi
if [ -e ~/.xinitrc ]; then
XINITRC=~/.xinitrc
else
XINITRC=@PREFIX@/etc/X11/xinitrc
fi
XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} "
if [ "$1" = "--gdb" ]; then
if [ -x /usr/bin/pvrsrvinit ]; then
pvrsrvinit start
fi
gdb --args Xorg ${XSERVER_OPTIONS}
else
if [ "$1" = "--only" ]; then
if [ -x /usr/bin/pvrsrvinit ]; then
pvrsrvinit start
fi
Xorg ${XSERVER_OPTIONS} &
else
xinit ${XINITRC} -- @PREFIX@/bin/Xorg ${XSERVER_OPTIONS} &
fi
fi
|