diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-07-28 00:14:06 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-08-06 10:41:52 +0200 |
commit | e47e654d335a5bd8311090fddef53b621c3a1496 (patch) | |
tree | c90966afd64331774e70fb4d21815064f6bf7e92 | |
parent | d9ff08749cd7482b2a2355a14ce72f3e6d6ba1a0 (diff) |
simtech,udev: simplify single vendor check
-rw-r--r-- | plugins/simtech/77-mm-simtech-port-types.rules | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/simtech/77-mm-simtech-port-types.rules b/plugins/simtech/77-mm-simtech-port-types.rules index 9956b801..a13d2c18 100644 --- a/plugins/simtech/77-mm-simtech-port-types.rules +++ b/plugins/simtech/77-mm-simtech-port-types.rules @@ -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" |