From a5f33f0070992ed836cdfdbc8e82f19c779b42d2 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 28 Jul 2016 00:14:04 +0200 Subject: telit,udev: single 'usb' subsystems check and simplified single vendor check --- plugins/telit/77-mm-telit-port-types.rules | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/telit/77-mm-telit-port-types.rules b/plugins/telit/77-mm-telit-port-types.rules index 398047c9..695246c2 100644 --- a/plugins/telit/77-mm-telit-port-types.rules +++ b/plugins/telit/77-mm-telit-port-types.rules @@ -1,12 +1,9 @@ # do not edit this file, it will be overwritten on update ACTION!="add|change|move", GOTO="mm_telit_port_types_end" +SUBSYSTEMS!="usb", GOTO="mm_telit_port_types_end" SUBSYSTEM!="tty", GOTO="mm_telit_port_types_end" - -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bc7", GOTO="mm_telit_vendorcheck" -GOTO="mm_telit_port_types_end" - -LABEL="mm_telit_vendorcheck" +ATTRS{idVendor}!="1bc7", GOTO="mm_telit_port_types_end" # UC864-E, UC864-E-AUTO, UC864-K, UC864-WD, UC864-WDU ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="1003", ATTRS{bInterfaceNumber}=="00", ENV{ID_MM_TELIT_PORT_TYPE_MODEM}="1" @@ -49,5 +46,4 @@ ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0036", ENV{ID_MM_TELIT_TAGGED}="1", # NOTE: Qualcomm Gobi-based devices like the LE920 should not be handled # by this plugin, but by the Gobi plugin. -GOTO="mm_telit_port_types_end" LABEL="mm_telit_port_types_end" -- cgit v1.2.3-70-g09d2