From 94cbd03921182c94b7e73fab6ca7e33237520209 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Tue, 16 Feb 2021 23:45:25 +0100 Subject: [PATCH] udev: rules: fix wrong ENV match and pass devpath to script --- udev/80-modem-eg25.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev/80-modem-eg25.rules b/udev/80-modem-eg25.rules index 163ec57..8221f89 100644 --- a/udev/80-modem-eg25.rules +++ b/udev/80-modem-eg25.rules @@ -1 +1 @@ -ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="02", RUN+="/usr/bin/configure-modem-usb" +ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{MINOR}=="0", RUN+="/usr/bin/configure-modem-usb %p"