From 291693ea81a4b65fbb7f75db10790d72d37b1ec0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eric=20B=C3=A9nard?= Date: Fri, 29 Oct 2010 17:44:52 +0200 Subject: [PATCH] busybox/find-touchscreen: handle input/device case MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- recipes/busybox/files/find-touchscreen.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5