summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/files/find-touchscreen.sh
blob: 1582ea891c26fcbbcbb68460ee8b3cff86ba413b (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if [ `egrep "input:.*-e0.*,3,.*a0,1,.*18,.*" /sys/class/input/$MDEV/device/modalias|wc -l` -gt 0 ]; then
	ln -sf /dev/input/$MDEV /dev/input/touchscreen0
fi

if [ `egrep "ads7846" /sys/class/input/$MDEV/device/modalias|wc -l` -gt 0 ]; then
	ln -sf /dev/input/$MDEV /dev/input/touchscreen0
fi