--- /dev/null
+#!/bin/sh
+
+module_id() {
+ awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
+}
+
+case `uname -r` in
+2.4*)
+ TSLIB_TSDEVICE=/dev/touchscreen/0raw
+ TSLIB_CONFFILE=/usr/share/tslib/ts.conf-h3600-2.4
+ ;;
+*)
+ TSLIB_TSDEVICE=`detect-tsdevice`
+ TSLIB_CONFFILE=/usr/share/tslib/ts.conf-h3600
+ ;;
+esac
+
+QWS_MOUSE_PROTO=TPanel:${TSLIB_TSDEVICE}
+
+export TSLIB_TSDEVICE TSLIB_CONFFILE QWS_MOUSE_PROTO
+
DEPENDS_h2200_append = " detect-tsdevice"
DEPENDS_h3600_append = " detect-tsdevice"
DEPENDS_h3900_append = " detect-tsdevice"
+DEPENDS_h4000_append = " detect-tsdevice"
DEPENDS_h6300_append = " detect-tsdevice"
DEPENDS_ipaq-pxa270_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h2200_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h3600_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h3900_append = " detect-tsdevice"
+RDEPENDS_tslib-conf_h4000_append = " detect-tsdevice"
RDEPENDS_tslib-conf_h6300_append = " detect-tsdevice"
RDEPENDS_tslib-conf_ipaq-pxa270_append = " detect-tsdevice"
install -d ${D}${sysconfdir}/profile.d/
install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/
case ${MACHINE} in
- h3600 | h3900 | h1940 | h6300 | h2200 | ipaq-pxa270)
+ h3600 | h3900 | h1940 | h6300 | h2200 | h4000 | ipaq-pxa270)
install -d ${D}${datadir}/tslib
for f in ts.conf-h3600 ts.conf-h3600-2.4 ts.conf-h6300; do
install -m 0644 ${WORKDIR}/$f ${D}${datadir}/tslib/