udevng: Do only label assignment for Speedup dongles
PATCH 1/2 udevng: Do only label assignment for Speedup dongles
--- plugins/udevng.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-)
plugins/udevng.c +0 -7
@@ -310,13 +310,6 @@ static gboolean setup_speedup(struct modem_info *modem) mdm = info->devnode;if (aux !=NULL )break ; - }else if (g_strcmp0 (info->interface,"255/255/255" ) ==0 ) { -if (g_strcmp0 (info->number,"01" ) ==0 ) - aux = info->devnode; -else if (g_strcmp0 (info->number,"02" ) ==0 ) - mdm = info->devnode; -else if (g_strcmp0 (info->number,"03" ) ==0 ) - mdm = info->devnode; } }
Signature · 1 line
1.7.1
PATCH 2/2 Add udev rules for Speedup dongles
--- plugins/ofono-speedup.rules | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 plugins/ofono-speedup.rules
plugins/ofono-speedup.rules new file +23 -0
@@ -0,0 +1,23 @@ +# do not edit this file, it will be overwritten on update + +ACTION!="add|change", GOTO="ofono_speedup_end" + +SUBSYSTEM!="tty", GOTO="ofono_speedup_end" +KERNEL!="ttyUSB[0-9]*", GOTO="ofono_speedup_end" + +# SpeedUp 7300 +ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", ENV{ID_USB_INTERFACE_NUM}=="00", ENV{OFONO_LABEL}="modem" +ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_LABEL}="aux" + +# SpeedUp +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_LABEL}="modem" +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="aux" + +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_LABEL}="modem" +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="aux" + +# SpeedUp 9800 +ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="modem" +ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800", ENV{ID_USB_INTERFACE_NUM}=="02", ENV{OFONO_LABEL}="aux" + +LABEL="ofono_speedup_end"
Signature · 1 line
1.7.1
Re: [PATCH 2/2] Add udev rules for Speedup dongles
Hi Philippe,
Quoted 3 lines
plugins/ofono-speedup.rules | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 plugins/ofono-speedup.rules
you might wanna add this file also to EXTRA_DIST. Otherwise it will never be included in any release.
Regards
Marcel
Hi Philippe,
Quoted 2 lines
plugins/udevng.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-)
patch has been applied. Thanks.
Regards
Marcel