summaryrefslogtreecommitdiff
path: root/packages/busybox/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/busybox/files')
-rw-r--r--packages/busybox/files/find-touchscreen.sh7
-rw-r--r--packages/busybox/files/mdev.conf60
2 files changed, 37 insertions, 30 deletions
diff --git a/packages/busybox/files/find-touchscreen.sh b/packages/busybox/files/find-touchscreen.sh
new file mode 100644
index 0000000000..34835e7f1c
--- /dev/null
+++ b/packages/busybox/files/find-touchscreen.sh
@@ -0,0 +1,7 @@
+#!/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
diff --git a/packages/busybox/files/mdev.conf b/packages/busybox/files/mdev.conf
index 196194941f..c66e7bda95 100644
--- a/packages/busybox/files/mdev.conf
+++ b/packages/busybox/files/mdev.conf
@@ -1,32 +1,32 @@
-console 0:0 0600
-cpu_dma_latency 0:0 0660
-fb0:0 44 0660
-full 0:0 0666
-initctl 0:0 0600
-ircomm[0-9].* 0:20 0660
-kmem 0:15 0640
-kmsg 0:0 0660
-log 0:0 0666
-loop[0-9].* 0:6 0640
-mem 0:15 0640
-network_latency 0:0 0660
-network_throughput 0:0 0660
-null 0:0 0666
-port 0:15 0640
-ptmx 0:5 0666
-ram[0-9].* 0:6 0640
-random 0:0 0666
-sda 0:6 0640
-tty 0:5 0666
-tty.* 0:0 0620
-urandom 0:0 0666
-usbdev.* 0:0 0660
-vcs.* 0:5 0660
-zero 0:0 0666
+console 0:0 0600
+cpu_dma_latency 0:0 0660
+fb0:0 44 0660
+full 0:0 0666
+initctl 0:0 0600
+ircomm[0-9].* 0:20 0660
+kmem 0:15 0640
+kmsg 0:0 0660
+log 0:0 0666
+loop[0-9].* 0:6 0640
+mem 0:15 0640
+network_latency 0:0 0660
+network_throughput 0:0 0660
+null 0:0 0666
+port 0:15 0640
+ptmx 0:5 0666
+ram[0-9].* 0:6 0640
+random 0:0 0666
+sda 0:6 0640
+tty 0:5 0666
+tty.* 0:0 0620
+urandom 0:0 0666
+usbdev.* 0:0 0660
+vcs.* 0:5 0660
+zero 0:0 0666
+
+pcm.* 0:0 0660 =snd/
+control.* 0:0 0660 =snd/
-pcm.* 0:0 0660 =snd/
-control.* 0:0 0660 =snd/
-
-event.* 0:0 0660 =input/
-mice 0:0 0660 =input/
+event.* 0:0 0660 =input/ @/etc/mdev/find-touchscreen.sh
+mice 0:0 0660 =input/
mouse.* 0:0 0660 =input/