summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-07-28 00:14:05 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-08-06 10:41:52 +0200
commitd9ff08749cd7482b2a2355a14ce72f3e6d6ba1a0 (patch)
treeb975d819f724c0f0f787dc0c5cd9e15427dff814
parenta5f33f0070992ed836cdfdbc8e82f19c779b42d2 (diff)
downloadModemManager-d9ff08749cd7482b2a2355a14ce72f3e6d6ba1a0.tar.gz
nokia,udev: simplify single vendor check
-rw-r--r--plugins/nokia/77-mm-nokia-port-types.rules7
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