From 55dbb9fdb99a3e59f8d4fbae05b97b246ce21f38 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 28 Jul 2016 00:14:01 +0200 Subject: [PATCH] longcheer,udev: single 'usb' subsystems check --- 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 9ad14939..895096b9 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"