feat(modem): keep ttyUSB2 unbound from modem-manager (#521)

feat: keep ttyUSB2 unbound from modem-manager
This commit is contained in:
Trey Moen
2026-02-20 11:48:18 -07:00
committed by GitHub
parent 1be26f33e6
commit 93d130954a
+2 -1
View File
@@ -1,5 +1,6 @@
# EG25 GNSS
KERNEL=="ttyUSB0",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="0125",ENV{ID_MM_DEVICE_IGNORE}="1"
KERNEL=="ttyUSB2",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="0125",ENV{ID_MM_PORT_IGNORE}="1"
# EG91
# ttyUSB0 - debug
@@ -8,7 +9,7 @@ KERNEL=="ttyUSB0",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="0125",ENV{ID_MM_DEV
# ttyUSB3 - AT
KERNEL=="ttyUSB0",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="6007",ENV{ID_MM_DEVICE_IGNORE}="1"
KERNEL=="ttyUSB1",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="6007",ENV{ID_MM_DEVICE_IGNORE}="1"
KERNEL=="ttyUSB2",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="6007",ENV{ID_MM_PORT_TYPE_AT_PPP}="1"
KERNEL=="ttyUSB2",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="6007",ENV{ID_MM_PORT_IGNORE}="1"
KERNEL=="ttyUSB3",ATTRS{idVendor}=="2c7c",ATTRS{idProduct}=="6007",ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
ACTION=="add",SUBSYSTEM=="usb",ATTR{idVendor}=="2c7c",ATTR{idProduct}=="6007",RUN+="/bin/sh -c 'echo -n $kernel:1.4 > /sys/bus/usb/drivers/cdc_ether/unbind'"