#!/bin/sh TS_INFO_FILE=/sys/devices/virtual/input/input0/uevent TS_INFO_FILE1=/sys/class/input/input0/uevent if [ -e $TS_INFO_FILE -a "/bin/grep -q TouchScreen < $TS_INFO_FILE" ]; then export TSLIB_TSDEVICE=/dev/input/event0 export TSLIB_CONFFILE=/usr/local/etc/ts.conf export TSLIB_PLUGINDIR=/usr/local/lib/ts export TSLIB_CALIBFILE=/etc/pointercal export LD_LIBRARY_PATH=/usr/local/lib export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin export QWS_DISPLAY=:1 export QWS_MOUSE_PROTO="Tslib:/dev/input/event1 MouseMan:/dev/input/mice" #rm -f /etc/pointercal #if [ ! -s /etc/pointercal ] ; then /usr/local/bin/ts_calibrate #fi else TS_INFO_FILE1=/sys/class/input/input0/uevent if [ -e $TS_INFO_FILE1 -a "/bin/grep -q TouchScreen < $TS_INFO_FILE1" ]; then export TSLIB_TSDEVICE=/dev/input/event0 export TSLIB_CONFFILE=/usr/local/etc/ts.conf export TSLIB_CALIBFILE=/etc/pointercal export LD_LIBRARY_PATH=/usr/local/lib export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin export QWS_DISPLAY=:1 export QWS_MOUSE_PROTO="Tslib:/dev/input/event0 MouseMan:/dev/input/mice" /usr/local/bin/ts_calibrate else export QWS_MOUSE_PROTO="MouseMan:/dev/input/mice" fi fi