aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-07-28 00:13:56 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-08-06 10:41:52 +0200
commit0b35e71d464fd8e422ddb8b7260d44969e1812f4 (patch)
treee4aa788fd1020392fc46fd5833b21d3c44becb02 /plugins
parent1a213e3b62abd8e8afee3741ef88bfc6d4b913f0 (diff)
udev: replace ENV{ID_VENDOR_ID} conditions with ATTRS{idVendor}
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cinterion/77-mm-cinterion-port-types.rules2
-rw-r--r--plugins/huawei/77-mm-huawei-net-port-types.rules2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/cinterion/77-mm-cinterion-port-types.rules b/plugins/cinterion/77-mm-cinterion-port-types.rules
index 09de7428..d345badc 100644
--- a/plugins/cinterion/77-mm-cinterion-port-types.rules
+++ b/plugins/cinterion/77-mm-cinterion-port-types.rules
@@ -2,7 +2,7 @@
ACTION!="add|change|move", GOTO="mm_cinterion_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_cinterion_port_types_end"
-ENV{ID_VENDOR_ID}!="1e2d", GOTO="mm_cinterion_port_types_end"
+ATTRS{idVendor}!="1e2d", GOTO="mm_cinterion_port_types_end"
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}"
diff --git a/plugins/huawei/77-mm-huawei-net-port-types.rules b/plugins/huawei/77-mm-huawei-net-port-types.rules
index f60f1f8a..52bcc802 100644
--- a/plugins/huawei/77-mm-huawei-net-port-types.rules
+++ b/plugins/huawei/77-mm-huawei-net-port-types.rules
@@ -1,7 +1,7 @@
# do not edit this file, it will be overwritten on update
ACTION!="add|change|move", GOTO="mm_huawei_port_types_end"
-ENV{ID_VENDOR_ID}!="12d1", GOTO="mm_huawei_port_types_end"
+ATTRS{idVendor}!="12d1", GOTO="mm_huawei_port_types_end"
# MU609 does not support getportmode (crashes modem with default firmware)
ATTRS{idProduct}=="1573", ENV{ID_MM_HUAWEI_DISABLE_GETPORTMODE}="1"