summaryrefslogtreecommitdiff
path: root/recipes-core/udev
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-12-20 13:49:47 -0600
committerJohn Klug <john.klug@multitech.com>2018-12-20 13:49:47 -0600
commit1481ac00890bea8b4eb614d8c344e005501e3274 (patch)
tree232ebd4a38b4c542c72e54cec2368e85117df553 /recipes-core/udev
parentee3b097f04efc421c3198e7985bb0b61acf3cdc8 (diff)
downloadmeta-mlinux-1481ac00890bea8b4eb614d8c344e005501e3274.tar.gz
meta-mlinux-1481ac00890bea8b4eb614d8c344e005501e3274.tar.bz2
meta-mlinux-1481ac00890bea8b4eb614d8c344e005501e3274.zip
Add a rulefile for mtrv1
Diffstat (limited to 'recipes-core/udev')
-rw-r--r--recipes-core/udev/eudev/mtrv1/mtrv1.rules14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes-core/udev/eudev/mtrv1/mtrv1.rules b/recipes-core/udev/eudev/mtrv1/mtrv1.rules
new file mode 100644
index 0000000..5d528e6
--- /dev/null
+++ b/recipes-core/udev/eudev/mtrv1/mtrv1.rules
@@ -0,0 +1,14 @@
+ACTION=="remove", GOTO="mlinux_end"
+SUBSYSTEM!="tty", GOTO="mlinux_end"
+KERNEL!="ttyXRUSB[0-9]*", GOTO="mlinux_end"
+
+SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
+ENV{ID_IFACE}=="", GOTO="mlinux_end"
+
+# Accessory Ports
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="00", SYMLINK+="ttyAP1"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="00", SYMLINK+="ttyAP1"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="02", SYMLINK+="ttyAP2"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="02", SYMLINK+="ttyAP2"
+
+LABEL="mlinux_end"