aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-10-29 17:44:52 +0200
committerEric Bénard <eric@eukrea.com>2010-10-30 02:30:57 +0200
commit291693ea81a4b65fbb7f75db10790d72d37b1ec0 (patch)
treefcdf05b8c5ceaf07787d9218219b74c2f29c72cc /recipes
parentcd7c9542bad478df9df733a6639ab3b6ef41ef72 (diff)
downloadopenembedded-291693ea81a4b65fbb7f75db10790d72d37b1ec0.tar.gz
busybox/find-touchscreen: handle input/device case
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@eukrea.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/busybox/files/find-touchscreen.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes/busybox/files/find-touchscreen.sh b/recipes/busybox/files/find-touchscreen.sh
index 1582ea891c..cfce7881b0 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