diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-07-28 00:14:05 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-08-06 10:41:52 +0200 |
commit | d9ff08749cd7482b2a2355a14ce72f3e6d6ba1a0 (patch) | |
tree | b975d819f724c0f0f787dc0c5cd9e15427dff814 | |
parent | a5f33f0070992ed836cdfdbc8e82f19c779b42d2 (diff) | |
download | ModemManager-d9ff08749cd7482b2a2355a14ce72f3e6d6ba1a0.tar.gz |
nokia,udev: simplify single vendor check
-rw-r--r-- | plugins/nokia/77-mm-nokia-port-types.rules | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/nokia/77-mm-nokia-port-types.rules b/plugins/nokia/77-mm-nokia-port-types.rules index 4c5340fa9..e9b594f6f 100644 --- a/plugins/nokia/77-mm-nokia-port-types.rules +++ b/plugins/nokia/77-mm-nokia-port-types.rules @@ -1,12 +1,9 @@ # do not edit this file, it will be overwritten on update ACTION!="add|change|move", GOTO="mm_nokia_port_types_end" +SUBSYSTEMS!="usb", GOTO="mm_nokia_port_types_end" SUBSYSTEM!="tty", GOTO="mm_nokia_port_types_end" - -SUBSYSTEMS=="usb", ATTRS{idVendor}=="0421", GOTO="mm_nokia_port_types_vendorcheck" -GOTO="mm_nokia_port_types_end" - -LABEL="mm_nokia_port_types_vendorcheck" +ATTRS{idVendor}!="0421", GOTO="mm_nokia_port_types_end" # For Nokia Internet Sticks (CS-xx) the modem/PPP port appears to always be USB interface 1 |