#!/bin/sh

FLUID_PATH="/usr/bin/qt4-demos/embedded/fluidlauncher"
CONFIG_PATH="$FLUID_PATH/config.xml"


#only calibrate touch if display is lcd
if [ ! -e /etc/pointercal ]; then
	ts_calibrate 1>/dev/null &
	PID=`ps | grep  "[t]s_calibrate"|awk '{print $1}'`               
	wait $PI
fi

[ -e /dev/fb0 ] && $FLUID_PATH/fluidlauncher -config $CONFIG_PATH -qws 2>/dev/null

exit 0
