summaryrefslogtreecommitdiff
path: root/recipes-core/udev/eudev/mtrv1/mtrv1.rules
blob: 7dc5479edc4594ee2b96023c282656122d6a60b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ACTION=="remove", GOTO="mlinux_end"
SUBSYSTEM!="tty", GOTO="mlinux_end"
KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*|ttyXRUSB[0-9]*|ttyS*", GOTO="mlinux_end"

SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
ENV{ID_IFACE}=="", GOTO="mlinux_end"

# mtr revA: bluetooth on exar chip (ACM0, iface 0)
# ttyXRUSB is Vizzini driver name, for compatiblity.
ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="00", SYMLINK+="ttyXRUSB0", SYMLINK+="bt"
# mtr revA: external serial on exar chip (ACM1, iface 2)
ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="02", SYMLINK+="ttyXRUSB1", SYMLINK+="ext_serial"

LABEL="mlinux_end"