#!/bin/sh
-TSLIB_TSDEVICE=/dev/input/event0
+case `uname -r` in
+2.4*)
+ TSLIB_TSDEVICE=/dev/touchscreen/ucb1x00
+ TSLIB_CONFFILE=/usr/share/tslib/ts.conf-simpad-2.4
+ ;;
+*)
+ TSLIB_TSDEVICE=/dev/input/event0
+ TSLIB_CONFFILE=/usr/share/tslib/ts.conf-simpad
+ ;;
+esac
+
+export TSLIB_TSDEVICE TSLIB_CONFFILE
-export TSLIB_TSDEVICE
file://ts.conf \
file://ts.conf-h3600 file://ts.conf-h3600-2.4 file://ts.conf-h6300 \
file://ts.conf-corgi file://ts.conf-corgi-2.4 \
+ file://ts.conf-simpad file://ts.conf-simpad-2.4 \
file://tslib.sh"
SRC_URI_append_mnci += " file://devfs.patch;patch=1"
SRC_URI_append_mnci += " file://event1.patch;patch=1"
done
rm -f ${D}${sysconfdir}/ts.conf
;;
+ simpad )
+ install -d ${D}${datadir}/tslib
+ for f in ts.conf-simpad ts.conf-simpad-2.4; do
+ install -m 0644 ${WORKDIR}/$f ${D}${datadir}/tslib/
+ done
+ rm -f ${D}${sysconfdir}/ts.conf
+ ;;
*)
;;
esac