simtech,udev: simplify single vendor check
This commit is contained in:
@@ -11,12 +11,9 @@
|
||||
|
||||
|
||||
ACTION!="add|change|move", GOTO="mm_simtech_port_types_end"
|
||||
SUBSYSTEMS!="usb", GOTO="mm_simtech_port_types_end"
|
||||
SUBSYSTEM!="tty", GOTO="mm_simtech_port_types_end"
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1e0e", GOTO="mm_alink_vendorcheck"
|
||||
GOTO="mm_simtech_port_types_end"
|
||||
|
||||
LABEL="mm_alink_vendorcheck"
|
||||
ATTRS{idVendor}!="1e0e", GOTO="mm_simtech_port_types_end"
|
||||
|
||||
# A-LINK 3GU
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ATTRS{bInterfaceNumber}=="02", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
|
||||
@@ -34,6 +31,4 @@ ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ATTRS{bInterfaceNumber}=="03"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ATTRS{bInterfaceNumber}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
|
||||
ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ENV{ID_MM_SIMTECH_TAGGED}="1"
|
||||
|
||||
GOTO="mm_simtech_port_types_end"
|
||||
|
||||
LABEL="mm_simtech_port_types_end"
|
||||
|
||||
Reference in New Issue
Block a user