aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslib/tslib/h2200/tslib.sh
blob: 90d911818b9cae01ba0b8b2203e80a555f6936d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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