diff options
Diffstat (limited to 'recipes-core-ivi/busybox/files/find-touchscreen.sh')
-rw-r--r-- | recipes-core-ivi/busybox/files/find-touchscreen.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/recipes-core-ivi/busybox/files/find-touchscreen.sh b/recipes-core-ivi/busybox/files/find-touchscreen.sh index da7ceb6..1582ea8 100644 --- a/recipes-core-ivi/busybox/files/find-touchscreen.sh +++ b/recipes-core-ivi/busybox/files/find-touchscreen.sh @@ -1,9 +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
+#!/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 |