haier,udev: simplify single vendor check
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user