From 8fc140ba1b460cad599d07d77702bd524efb5c4c Mon Sep 17 00:00:00 2001 From: Serge Date: Mon, 15 Oct 2018 14:46:17 -0700 Subject: [PATCH] Udev rules: ignore D868UV in modem manager. --- 99-dmr.rules | 4 ++++ radio.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/99-dmr.rules b/99-dmr.rules index ab74745..9323998 100644 --- a/99-dmr.rules +++ b/99-dmr.rules @@ -10,3 +10,7 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="666" # Baofeng RD-5R SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666" + +# Anytone AT-D868UV +#TODO: Ignore this device in Modem Manager +# ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1"' diff --git a/radio.c b/radio.c index 9a7fb28..7ebf85b 100644 --- a/radio.c +++ b/radio.c @@ -44,12 +44,12 @@ static struct { { "MD-UV390", &radio_uv390 }, // TYT MD-UV390, Retevis RT3S { "2017", &radio_md2017 }, // TYT MD-2017, Retevis RT82 { "MD9600", &radio_md9600 }, // TYT MD-9600 - { "ZD3688", &radio_d900 }, // Zastone D900 - { "TP660", &radio_dp880 }, // Zastone DP880 - { "ZN><:", &radio_rt27d }, // Radtel RT-27D { "BF-5R", &radio_rd5r }, // Baofeng RD-5R { "MD-760P", &radio_gd77 }, // Radioddity GD-77, version 3.1.1 and later { "D868UVE", &radio_d868uv }, // Anytone AT-D868UV + { "ZD3688", &radio_d900 }, // Zastone D900 + { "TP660", &radio_dp880 }, // Zastone DP880 + { "ZN><:", &radio_rt27d }, // Radtel RT-27D { 0, 0 } };