#!/bin/sh

#
# X Window boot shell script
# 

#export PATH=$PATH:/X11R6/bin
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/X11R6/lib
#export __GL_SYNC_TO_VBLANK=1

#sleep 5

cp -prdf /cf/etc/X11/XF86Config /etc/X11/
sync
xinit /etc/X11/xrc -- /X11R6/bin/X -s 0 -nolisten tcp&

x_pid=$!
echo "/proc/$x_pid/mem" > /tmp/xpid 

#ret=""
#
#while [ "$ret" != "S" ]; do
#	ret=`busybox ps | grep "/X11R6/bin/X :0 -s 0" | awk '{print $4;}'`
#	#echo $ret
#done
