aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/busybox
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/busybox')
-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