From: Marcin Juszkiewicz Date: Tue, 13 Jan 2009 17:19:39 +0000 (+0100) Subject: busybox/mdev: support devices with ads7846 touchscreen and wrong modalias X-Git-Tag: Release-2010-05/1~4338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74c7fba31d7f8e9431534a0c78db3ba224f416ec;p=openembedded.git busybox/mdev: support devices with ads7846 touchscreen and wrong modalias --- diff --git a/packages/busybox/busybox_1.13.2.bb b/packages/busybox/busybox_1.13.2.bb index 7a5731514c..1451e4a511 100644 --- a/packages/busybox/busybox_1.13.2.bb +++ b/packages/busybox/busybox_1.13.2.bb @@ -1,6 +1,6 @@ require busybox.inc -PR = "r2" +PR = "r3" SRC_URI = "\ http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ diff --git a/packages/busybox/files/find-touchscreen.sh b/packages/busybox/files/find-touchscreen.sh index 34835e7f1c..1582ea891c 100644 --- a/packages/busybox/files/find-touchscreen.sh +++ b/packages/busybox/files/find-touchscreen.sh @@ -1,7 +1,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