haier,udev: simplify single vendor check

This commit is contained in:
Aleksander Morgado
2016-07-28 00:13:59 +02:00
parent 6e999584be
commit 840143aa3d

View File

@@ -1,12 +1,9 @@
# do not edit this file, it will be overwritten on update
ACTION!="add|change|move", GOTO="mm_haier_port_types_end"
SUBSYSTEMS!="usb", GOTO="mm_haier_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_haier_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="201e", GOTO="mm_haier_port_types_vendorcheck"
GOTO="mm_haier_port_types_end"
LABEL="mm_haier_port_types_vendorcheck"
ATTRS{idVendor}!="201e", GOTO="mm_haier_port_types_end"
# Haier CE81B
ATTRS{idVendor}=="201e", ATTRS{idProduct}=="10f8", ATTRS{bInterfaceNumber}=="03", ENV{ID_MM_HAIER_PORT_TYPE_MODEM}="1"