[PATCH 07/14] longcheer,udev: single 'usb' subsystems check

Aleksander Morgado aleksander at aleksander.es
Wed Jul 27 22:14:01 UTC 2016


---
 plugins/longcheer/77-mm-longcheer-port-types.rules | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/plugins/longcheer/77-mm-longcheer-port-types.rules b/plugins/longcheer/77-mm-longcheer-port-types.rules
index 9ad1493..895096b 100644
--- a/plugins/longcheer/77-mm-longcheer-port-types.rules
+++ b/plugins/longcheer/77-mm-longcheer-port-types.rules
@@ -14,10 +14,11 @@
 
 
 ACTION!="add|change|move", GOTO="mm_longcheer_port_types_end"
+SUBSYSTEMS!="usb", GOTO="mm_longcheer_port_types_end"
 SUBSYSTEM!="tty", GOTO="mm_longcheer_port_types_end"
 
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c9e", GOTO="mm_longcheer_vendorcheck"
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bbb", GOTO="mm_tamobile_vendorcheck"
+ATTRS{idVendor}=="1c9e", GOTO="mm_longcheer_vendorcheck"
+ATTRS{idVendor}=="1bbb", GOTO="mm_tamobile_vendorcheck"
 GOTO="mm_longcheer_port_types_end"
 
 LABEL="mm_longcheer_vendorcheck"
-- 
2.9.0



More information about the ModemManager-devel mailing list