udev: rules: fix wrong ENV match and pass devpath to script

This commit is contained in:
Arnaud Ferraris
2021-02-16 23:45:25 +01:00
parent 4c832a00dc
commit 94cbd03921

View File

@@ -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"