[oe] [PATCH 5/7] busybox/find-touchscreen: handle input/device case

Eric Bénard eric at eukrea.com
Fri Oct 29 21:25:41 UTC 2010


On a new configuration using 2.6.36 kernel + busybox 1.17.1 ,
find-toucscreen.sh fails because $MDEV is input/event0 and not event0.

This patch fixes this problem by removing input/ if present in $MDEV.

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 recipes/busybox/files/find-touchscreen.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/recipes/busybox/files/find-touchscreen.sh b/recipes/busybox/files/find-touchscreen.sh
index 1582ea8..cfce788 100644
--- a/recipes/busybox/files/find-touchscreen.sh
+++ b/recipes/busybox/files/find-touchscreen.sh
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+MDEV=`echo $MDEV | sed 's#input/##g'`
+
 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
-- 
1.6.3.3





More information about the Openembedded-devel mailing list