startdri script

Jared Holzman jholzman at iprimus.com.au
Sun Dec 21 17:33:48 UTC 2003


Because I use a xinerama desktop, to play games I have written a script
called startdri which runs X in a different vt in dri mode and runs the
game I specify. The only problem is, I can't get the script to kill the
second X session when the game finished. Can anyone tell me what I'm
doing wrong? The script is below...

Cheers,
Jared

#!/bin/sh
X -ac -xf86config XF86Config.dri :1 > /tmp/startdri.log &
pid=`/sbin/pidof X | cut -d' ' -f1`
export DISPLAY=:1
sleep 1
exec $1 >> /tmp/startdri.log
kill $pid >> /tmp/startdri.log
exit 0






More information about the users mailing list