From 386ae871df4323c754f1d0c77761e8d34f6625b2 Mon Sep 17 00:00:00 2001 From: Huzaifa Sidhpurwala Date: Wed, 12 Jun 2013 11:50:54 +0530 Subject: [PATCH 01/73] New upstream release - 1.2.6 --- .gitignore | 1 + sources | 3 +-- usb_modeswitch.spec | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5789616..16e6eaa 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ usb-modeswitch-1.1.4.tar.bz2 /usb-modeswitch-1.2.2.tar.bz2 /usb-modeswitch-1.2.4.tar.bz2 /usb-modeswitch-1.2.5.tar.bz2 +/usb-modeswitch-1.2.6.tar.bz2 diff --git a/sources b/sources index f9df2f5..477fe67 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -c393603908eceab95444c5bde790f6f0 usb-modeswitch-1.2.5.tar.bz2 -9918bbdc0f68873410688604c80d25c4 device_reference.txt +3cd804ad2dd4cb61fbd77a5cc033496c usb-modeswitch-1.2.6.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index da7a8a3..f4d0e60 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 1.2.5 -Release: 2%{?dist} +Version: 1.2.6 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -66,6 +66,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT/lib/udev/usb_modeswitch %changelog +* Wed Jun 12 2013 Huzaifa Sidhpurwala - 1.2.6 +- New upstream release. + * Fri Feb 15 2013 Fedora Release Engineering - 1.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From db87017f77ec0536c16065296fe45cdade1cc738 Mon Sep 17 00:00:00 2001 From: Huzaifa Sidhpurwala Date: Wed, 12 Jun 2013 11:52:01 +0530 Subject: [PATCH 02/73] New upstream release - 1.2.6 --- sources | 3 +-- usb_modeswitch.spec | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sources b/sources index f9df2f5..477fe67 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -c393603908eceab95444c5bde790f6f0 usb-modeswitch-1.2.5.tar.bz2 -9918bbdc0f68873410688604c80d25c4 device_reference.txt +3cd804ad2dd4cb61fbd77a5cc033496c usb-modeswitch-1.2.6.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index da7a8a3..f4d0e60 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 1.2.5 -Release: 2%{?dist} +Version: 1.2.6 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -66,6 +66,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT/lib/udev/usb_modeswitch %changelog +* Wed Jun 12 2013 Huzaifa Sidhpurwala - 1.2.6 +- New upstream release. + * Fri Feb 15 2013 Fedora Release Engineering - 1.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From c349eea5d38dc454746e27cbfe79a95fbd4ca211 Mon Sep 17 00:00:00 2001 From: Huzaifa Sidhpurwala Date: Wed, 12 Jun 2013 12:19:47 +0530 Subject: [PATCH 03/73] Sources --- sources | 1 + 1 file changed, 1 insertion(+) diff --git a/sources b/sources index 477fe67..82ba807 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 3cd804ad2dd4cb61fbd77a5cc033496c usb-modeswitch-1.2.6.tar.bz2 +13f239816d7c4add8113179f4fb3543c device_reference.txt From 2991a7aed0ef084be2319d9bc2bdf931b8020105 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 26 Jul 2013 18:25:46 -0500 Subject: [PATCH 04/73] Fix udev directory --- usb_modeswitch.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index f4d0e60..ec9b728 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 1.2.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -42,7 +42,7 @@ CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/ +mkdir -p $RPM_BUILD_ROOT%{_libdir}/udev/rules.d/ mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} @@ -51,7 +51,7 @@ install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 -install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT/lib/udev/usb_modeswitch +install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitch @@ -60,12 +60,15 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT/lib/udev/usb_modeswitch %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz -/lib/udev/usb_modeswitch +%{_libdir}/udev/usb_modeswitch %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Fri Jul 26 2013 Dan Williams - 1.2.6-2 +- Fix udev directories + * Wed Jun 12 2013 Huzaifa Sidhpurwala - 1.2.6 - New upstream release. From 16bbdf02e2d8f4c014882e3d4ce818ce3a66f276 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 26 Jul 2013 18:26:22 -0500 Subject: [PATCH 05/73] Fix udev directories --- usb_modeswitch.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index f4d0e60..ec9b728 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 1.2.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -42,7 +42,7 @@ CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/ +mkdir -p $RPM_BUILD_ROOT%{_libdir}/udev/rules.d/ mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} @@ -51,7 +51,7 @@ install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 -install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT/lib/udev/usb_modeswitch +install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitch @@ -60,12 +60,15 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT/lib/udev/usb_modeswitch %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz -/lib/udev/usb_modeswitch +%{_libdir}/udev/usb_modeswitch %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Fri Jul 26 2013 Dan Williams - 1.2.6-2 +- Fix udev directories + * Wed Jun 12 2013 Huzaifa Sidhpurwala - 1.2.6 - New upstream release. From 66da2862e04f63a59a1bf0236120a066fb649935 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 26 Jul 2013 18:30:32 -0500 Subject: [PATCH 06/73] Update source link --- usb_modeswitch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index ec9b728..0e282a4 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -9,7 +9,7 @@ Group: Applications/System License: GPLv2+ URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 -Source1: device_reference.txt +Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt Requires: usb_modeswitch-data >= 20121109 BuildRequires: libusb-devel From c886dfa0922a1e4780bc5d6310ce17cb5107a985 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 26 Jul 2013 18:30:39 -0500 Subject: [PATCH 07/73] Update source link --- usb_modeswitch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index ec9b728..0e282a4 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -9,7 +9,7 @@ Group: Applications/System License: GPLv2+ URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 -Source1: device_reference.txt +Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt Requires: usb_modeswitch-data >= 20121109 BuildRequires: libusb-devel From 3eb08e64c15526970db957d834e9e3da400254a1 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 26 Jul 2013 18:44:39 -0500 Subject: [PATCH 08/73] Update sources for dvice_reference.txt --- sources | 1 + 1 file changed, 1 insertion(+) diff --git a/sources b/sources index 477fe67..82ba807 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 3cd804ad2dd4cb61fbd77a5cc033496c usb-modeswitch-1.2.6.tar.bz2 +13f239816d7c4add8113179f4fb3543c device_reference.txt From c4f2c36b7044532c1db36bbeb47b8444fe418876 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 16 Aug 2013 12:15:00 -0500 Subject: [PATCH 09/73] Update to latest upstream release --- .gitignore | 1 + sources | 4 ++-- usb_modeswitch.spec | 17 ++++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 16e6eaa..5d26b63 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ usb-modeswitch-1.1.4.tar.bz2 /usb-modeswitch-1.2.4.tar.bz2 /usb-modeswitch-1.2.5.tar.bz2 /usb-modeswitch-1.2.6.tar.bz2 +/usb-modeswitch-1.2.7.tar.bz2 diff --git a/sources b/sources index 82ba807..793b0dd 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -3cd804ad2dd4cb61fbd77a5cc033496c usb-modeswitch-1.2.6.tar.bz2 -13f239816d7c4add8113179f4fb3543c device_reference.txt +18d889d72195534ae9133a8181cad42b usb-modeswitch-1.2.7.tar.bz2 +dd14f254f6c3642ce16fd7c2f43ee112 device_reference.txt diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 0e282a4..5b8f7c4 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 1.2.6 -Release: 2%{?dist} +Version: 1.2.7 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -66,6 +66,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc %changelog +* Fri Aug 16 2013 Dan Williams - 1.2.7-1 +- New upstream release + * Fri Jul 26 2013 Dan Williams - 1.2.6-2 - Fix udev directories @@ -142,10 +145,10 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc - Patch usb_modeswtich to use the binary from /usr/bin/ - usb_modeswitch-data needs tcl -* Wed Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-2 +* Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-2 - Reload udev when new rules are installed -* Wed Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-1 +* Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-1 - New upstream 1.1.0 release - Split package into binary and data part @@ -167,14 +170,14 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc * Sat Dec 13 2008 Robert M. Albrecht 0.9.5-1 * new upstream release -* Sat Jun 22 2008 Robert M. Albrecht 0.9.4-2 +* Sun Jun 22 2008 Robert M. Albrecht 0.9.4-2 - Fixed some rpmlint errors - Added german translation -* Sat Jun 22 2008 Robert M. Albrecht 0.9.4-1 +* Sun Jun 22 2008 Robert M. Albrecht 0.9.4-1 - Update to 0.9.4 - Honor RPM_OPT_FLAGS -* Sat May 26 2008 Robert M. Albrecht 0.9.4-0.1.beta2 +* Mon May 26 2008 Robert M. Albrecht 0.9.4-0.1.beta2 - First package Release From 394c8bf49980b55501f0ce1e2962f0c26f25be2f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 26 Aug 2013 10:37:20 -0500 Subject: [PATCH 10/73] Fix udev helper path --- usb_modeswitch.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 5b8f7c4..ed79431 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 1.2.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -34,6 +34,7 @@ cp -f %{SOURCE1} device_reference.txt # convert device_reference.txt encoding to UTF-8 iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \ touch -r device_reference.txt device_reference.txt.new && \ +chmod 644 device_reference.txt && \ mv device_reference.txt.new device_reference.txt %build @@ -42,7 +43,7 @@ CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT%{_libdir}/udev/rules.d/ +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/udev mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} @@ -51,7 +52,7 @@ install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 -install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitch +install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modeswitch @@ -60,12 +61,15 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz -%{_libdir}/udev/usb_modeswitch +%{_prefix}/lib/udev/usb_modeswitch %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Fri Aug 26 2013 Dan Williams - 1.2.7-2 +- Fix udev helper path + * Fri Aug 16 2013 Dan Williams - 1.2.7-1 - New upstream release From c227b39ce268210efbc2bf16e82f5f5e99070b54 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 26 Aug 2013 10:41:33 -0500 Subject: [PATCH 11/73] Fix changelog date --- usb_modeswitch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index ed79431..d517303 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -67,7 +67,7 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog -* Fri Aug 26 2013 Dan Williams - 1.2.7-2 +* Mon Aug 26 2013 Dan Williams - 1.2.7-2 - Fix udev helper path * Fri Aug 16 2013 Dan Williams - 1.2.7-1 From 514e4cd00b619d3284098e18f6b1590cdc7f5031 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 26 Aug 2013 10:42:18 -0500 Subject: [PATCH 12/73] Update to latest upstream release, fix udev paths, fix changelog dates --- .gitignore | 1 + sources | 4 ++-- usb_modeswitch.spec | 25 ++++++++++++++++--------- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 5789616..cbf673e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ usb-modeswitch-1.1.4.tar.bz2 /usb-modeswitch-1.2.2.tar.bz2 /usb-modeswitch-1.2.4.tar.bz2 /usb-modeswitch-1.2.5.tar.bz2 +/usb-modeswitch-1.2.7.tar.bz2 diff --git a/sources b/sources index 82ba807..793b0dd 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -3cd804ad2dd4cb61fbd77a5cc033496c usb-modeswitch-1.2.6.tar.bz2 -13f239816d7c4add8113179f4fb3543c device_reference.txt +18d889d72195534ae9133a8181cad42b usb-modeswitch-1.2.7.tar.bz2 +dd14f254f6c3642ce16fd7c2f43ee112 device_reference.txt diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 0e282a4..d517303 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,7 +1,7 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 1.2.6 +Version: 1.2.7 Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten @@ -34,6 +34,7 @@ cp -f %{SOURCE1} device_reference.txt # convert device_reference.txt encoding to UTF-8 iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \ touch -r device_reference.txt device_reference.txt.new && \ +chmod 644 device_reference.txt && \ mv device_reference.txt.new device_reference.txt %build @@ -42,7 +43,7 @@ CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT%{_libdir}/udev/rules.d/ +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/udev mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} @@ -51,7 +52,7 @@ install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 -install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitch +install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modeswitch @@ -60,12 +61,18 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz -%{_libdir}/udev/usb_modeswitch +%{_prefix}/lib/udev/usb_modeswitch %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Mon Aug 26 2013 Dan Williams - 1.2.7-2 +- Fix udev helper path + +* Fri Aug 16 2013 Dan Williams - 1.2.7-1 +- New upstream release + * Fri Jul 26 2013 Dan Williams - 1.2.6-2 - Fix udev directories @@ -142,10 +149,10 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc - Patch usb_modeswtich to use the binary from /usr/bin/ - usb_modeswitch-data needs tcl -* Wed Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-2 +* Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-2 - Reload udev when new rules are installed -* Wed Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-1 +* Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-1 - New upstream 1.1.0 release - Split package into binary and data part @@ -167,14 +174,14 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc * Sat Dec 13 2008 Robert M. Albrecht 0.9.5-1 * new upstream release -* Sat Jun 22 2008 Robert M. Albrecht 0.9.4-2 +* Sun Jun 22 2008 Robert M. Albrecht 0.9.4-2 - Fixed some rpmlint errors - Added german translation -* Sat Jun 22 2008 Robert M. Albrecht 0.9.4-1 +* Sun Jun 22 2008 Robert M. Albrecht 0.9.4-1 - Update to 0.9.4 - Honor RPM_OPT_FLAGS -* Sat May 26 2008 Robert M. Albrecht 0.9.4-0.1.beta2 +* Mon May 26 2008 Robert M. Albrecht 0.9.4-0.1.beta2 - First package Release From 0ebd0a01f25ef590f5f69c3c9fc80b29368aa1d0 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 20 Aug 2013 11:36:45 +0200 Subject: [PATCH 13/73] fix manual pages for usb_modeswitch - remove obsolete patch usb_modeswitch-dir.patch. - add a manual page for usb_modeswitch_dispatcher (rh #884203). - fix several inconsistencies in the manual page and the help output of usb_modeswitch (rh #948451). Resolves: #948451 Resolves: #884203 --- rhbz948451-fix-manual-pages.patch | 99 +++++++++++++++++++++++++++++++ usb_modeswitch-dir.patch | 12 ---- usb_modeswitch.spec | 14 ++++- 3 files changed, 110 insertions(+), 15 deletions(-) create mode 100644 rhbz948451-fix-manual-pages.patch delete mode 100644 usb_modeswitch-dir.patch diff --git a/rhbz948451-fix-manual-pages.patch b/rhbz948451-fix-manual-pages.patch new file mode 100644 index 0000000..0ebae61 --- /dev/null +++ b/rhbz948451-fix-manual-pages.patch @@ -0,0 +1,99 @@ +diff -up usb-modeswitch-1.2.7/usb_modeswitch.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.1 +--- usb-modeswitch-1.2.7/usb_modeswitch.1.fix-manual-pages 2013-08-20 12:07:24.292188457 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch.1 2013-08-20 12:30:41.606556395 +0200 +@@ -48,10 +48,12 @@ Product ID to look for (mandatory) + Target vendor ID. When given will be searched for and detected initially + for information purposes. If success checking (option \-s) is active, + providing target IDs (vendor/product) or target class is recommended ++.IP "\fB-j\fP \fB\-\-find-mbim\fP " 10 ++Return configuration number with MBIM interface and exit. + .IP "\fB-P\fP \fB\-\-target-product NUM\fP " 10 + Target product ID +-.IP "\fB-b\fP \fB\-\-busnum NUM\fP " 10 +-.IP "\fB-g\fP \fB\-\-devnum NUM\fP " 10 ++.IP "\fB-b\fP \fB\-\-bus-num NUM\fP " 10 ++.IP "\fB-g\fP \fB\-\-device-num NUM\fP " 10 + If bus and device number are provided, the handling of a specific device on + a specific USB port is guaranteed, in contrast to using only the USB ID. This + is important if there are multiple similar devices on a system +@@ -110,7 +112,7 @@ Send a special control message used by P + .IP "\fB-Z\fP \fB\-\-blackberry-mode\fP " 10 + Send a special control message used by Blackberry devices + .IP "\fB-O\fP \fB\-\-sony-mode\fP " 10 +-Apply a special sequence used by Sony Ericsson devices. Implies option \--success ++Apply a special sequence used by Sony Ericsson devices. Implies option \--check-success + .IP "\fB-L\fP \fB\-\-cisco-mode\fP " 10 + Send a sequence of bulk messages used by Cisco devices + .IP "\fB-R\fP \fB\-\-reset-usb\fP " 10 +@@ -119,7 +121,7 @@ method or stand alone. It is always done + interactions. + Few devices need it to complete the switching; apart from that it may be + useful during testing +-.IP "\fB-c\fP \fB\-\-config FILENAME\fP " 10 ++.IP "\fB-c\fP \fB\-\-config-file FILENAME\fP " 10 + Use a specific config file. If any ID or switching options are given as + command line parameters, this option is ignored. + In that case all mandatory parameters have to be provided on +@@ -138,7 +140,7 @@ Print all settings before running and sh + Changes the behaviour of the program slightly. A success message including the + effective target device ID is put out and a syslog notice is issued. Mainly for + integration with a wrapper script +-.IP "\fB-s\fP \fB\-\-success NUM\fP " 10 ++.IP "\fB-s\fP \fB\-\-check-success NUM\fP " 10 + After switching, keep checking for the result up to max. NUM seconds. If target IDs + or target class were provided, their appearance indicates certain success. Otherwise + the disconnection of the original device is rated as likely proof +diff -up usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.c +--- usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages 2013-08-20 12:12:10.752953754 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch.c 2013-08-20 12:37:27.415242925 +0200 +@@ -1968,11 +1968,12 @@ void printHelp() + " -V, --target-vendor NUM target mode vendor ID (optional)\n" + " -P, --target-product NUM target mode product ID (optional)\n" + " -C, --target-class NUM target mode device class (optional)\n" +- " -b, --busnum NUM system bus number of device (for hard ID)\n" +- " -g, --devnum NUM system device number (for hard ID)\n" ++ " -b, --bus-num NUM system bus number of device (for hard ID)\n" ++ " -g, --device-num NUM system device number (for hard ID)\n" + " -m, --message-endpoint NUM direct the message transfer there (optional)\n" + " -M, --message-content message to send (hex number as string)\n" +- " -2 , -3 additional messages to send (-n recommended)\n" ++ " -2, --message-content2 additional messages to send (-n recommended)\n" ++ " -3, --message-content3 additional messages to send (-n recommended)\n" + " -n, --need-response read response to the message transfer (CSW)\n" + " -r, --response-endpoint NUM read response from there (optional)\n" + " -d, --detach-only detach the active driver, no further action\n" +@@ -1989,10 +1990,11 @@ void printHelp() + " -Z, --blackberry-mode apply a special procedure\n" + " -F, --pantech-mode apply a special procedure\n" + " -R, --reset-usb reset the device after all other actions\n" ++ " -w, --release-delay delay releasing the interface\n" + " -Q, --quiet don't show progress or error messages\n" + " -W, --verbose print all settings and debug output\n" + " -D, --sysmode specific result and syslog message\n" +- " -s, --success switching result check with timeout\n" ++ " -s, --check-success switching result check with timeout\n" + " -I, --no-inquire do not get SCSI attributes (default on)\n\n" + " -c, --config-file load long configuration from file\n\n" + " -t, --stdinput read long configuration from stdin\n\n" +diff -up usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 +--- usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages 2013-08-20 11:59:15.467713141 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 2013-08-20 12:57:51.913947292 +0200 +@@ -0,0 +1,18 @@ ++.TH "USB_MODESWITCH_DISPATCHER" "1" ++.SH "NAME" ++usb_modeswitch_dispatcher - dispatcher not intended for direct invocation. ++.SH "SYNOPSIS" ++.PP ++\fBusb_modeswitch_dispatcher\fR ++.SH "DESCRIPTION" ++.PP ++usb_modeswitch_dispatcher is doing additional device checking and ++using the usb_modeswitch binary to switch with the selected device config file. ++If no drivers are taking care of the device after the mode switch, the dispatcher ++will try to load and bind the "option" serial driver, in order to make the device ++usable. ++.PP ++This program is called by udev and is not supposed to be called directly ++by the user. ++.SH SEE ALSO ++.BR usb_modeswitch(1). diff --git a/usb_modeswitch-dir.patch b/usb_modeswitch-dir.patch deleted file mode 100644 index a4805c7..0000000 --- a/usb_modeswitch-dir.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur usb-modeswitch-1.1.2/Makefile usb-modeswitch-1.1.2.dir/Makefile ---- usb-modeswitch-1.1.2/Makefile 2010-04-17 23:57:11.000000000 +0530 -+++ usb-modeswitch-1.1.2.dir/Makefile 2010-04-20 10:28:04.345041264 +0530 -@@ -7,7 +7,7 @@ - PREFIX = $(DESTDIR)/usr - ETCDIR = $(DESTDIR)/etc - UDEVDIR = $(DESTDIR)/lib/udev --SBINDIR = $(PREFIX)/sbin -+SBINDIR = $(PREFIX)/bin - MANDIR = $(PREFIX)/share/man/man1 - - .PHONY: clean diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index d517303..e0e9222 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 1.2.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -10,6 +10,7 @@ License: GPLv2+ URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt +Patch0: rhbz948451-fix-manual-pages.patch Requires: usb_modeswitch-data >= 20121109 BuildRequires: libusb-devel @@ -29,7 +30,8 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %prep %setup -q -n %{source_name}-%{version} -cp -f %{SOURCE1} device_reference.txt +cp -f %{SOURCE1} device_reference.txt +%patch0 -p1 -b .fix-manual-pages # convert device_reference.txt encoding to UTF-8 iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \ @@ -52,6 +54,7 @@ install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 +gzip -9c usb_modeswitch_dispatcher.1 > usb_modeswitch_dispatcher.1.gz && install -m 644 usb_modeswitch_dispatcher.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modeswitch @@ -61,12 +64,17 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz +%{_mandir}/man1/usb_modeswitch_dispatcher.1.gz %{_prefix}/lib/udev/usb_modeswitch %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Tue Aug 28 2013 Thomas Haller 1.2.7-3 +- Add manual page for usb_modeswitch_dispatcher and fix errors in + manual page of usb_modeswitch (rhbz#948451, rhbz#884203). + * Mon Aug 26 2013 Dan Williams - 1.2.7-2 - Fix udev helper path @@ -146,7 +154,7 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes - Version bump * Thu Mar 4 2010 Huzaifa Sidhpurwala 1.1.0-3 -- Patch usb_modeswtich to use the binary from /usr/bin/ +- Patch usb_modeswitch to use the binary from /usr/bin/ - usb_modeswitch-data needs tcl * Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-2 From e683b4bf99221d2ddf157ba0937275836b703676 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 20 Aug 2013 11:36:45 +0200 Subject: [PATCH 14/73] fix manual pages for usb_modeswitch - remove obsolete patch usb_modeswitch-dir.patch. - add a manual page for usb_modeswitch_dispatcher (rh #884203). - fix several inconsistencies in the manual page and the help output of usb_modeswitch (rh #948451). Resolves: #948451 Resolves: #884203 --- rhbz948451-fix-manual-pages.patch | 99 +++++++++++++++++++++++++++++++ usb_modeswitch-dir.patch | 12 ---- usb_modeswitch.spec | 14 ++++- 3 files changed, 110 insertions(+), 15 deletions(-) create mode 100644 rhbz948451-fix-manual-pages.patch delete mode 100644 usb_modeswitch-dir.patch diff --git a/rhbz948451-fix-manual-pages.patch b/rhbz948451-fix-manual-pages.patch new file mode 100644 index 0000000..0ebae61 --- /dev/null +++ b/rhbz948451-fix-manual-pages.patch @@ -0,0 +1,99 @@ +diff -up usb-modeswitch-1.2.7/usb_modeswitch.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.1 +--- usb-modeswitch-1.2.7/usb_modeswitch.1.fix-manual-pages 2013-08-20 12:07:24.292188457 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch.1 2013-08-20 12:30:41.606556395 +0200 +@@ -48,10 +48,12 @@ Product ID to look for (mandatory) + Target vendor ID. When given will be searched for and detected initially + for information purposes. If success checking (option \-s) is active, + providing target IDs (vendor/product) or target class is recommended ++.IP "\fB-j\fP \fB\-\-find-mbim\fP " 10 ++Return configuration number with MBIM interface and exit. + .IP "\fB-P\fP \fB\-\-target-product NUM\fP " 10 + Target product ID +-.IP "\fB-b\fP \fB\-\-busnum NUM\fP " 10 +-.IP "\fB-g\fP \fB\-\-devnum NUM\fP " 10 ++.IP "\fB-b\fP \fB\-\-bus-num NUM\fP " 10 ++.IP "\fB-g\fP \fB\-\-device-num NUM\fP " 10 + If bus and device number are provided, the handling of a specific device on + a specific USB port is guaranteed, in contrast to using only the USB ID. This + is important if there are multiple similar devices on a system +@@ -110,7 +112,7 @@ Send a special control message used by P + .IP "\fB-Z\fP \fB\-\-blackberry-mode\fP " 10 + Send a special control message used by Blackberry devices + .IP "\fB-O\fP \fB\-\-sony-mode\fP " 10 +-Apply a special sequence used by Sony Ericsson devices. Implies option \--success ++Apply a special sequence used by Sony Ericsson devices. Implies option \--check-success + .IP "\fB-L\fP \fB\-\-cisco-mode\fP " 10 + Send a sequence of bulk messages used by Cisco devices + .IP "\fB-R\fP \fB\-\-reset-usb\fP " 10 +@@ -119,7 +121,7 @@ method or stand alone. It is always done + interactions. + Few devices need it to complete the switching; apart from that it may be + useful during testing +-.IP "\fB-c\fP \fB\-\-config FILENAME\fP " 10 ++.IP "\fB-c\fP \fB\-\-config-file FILENAME\fP " 10 + Use a specific config file. If any ID or switching options are given as + command line parameters, this option is ignored. + In that case all mandatory parameters have to be provided on +@@ -138,7 +140,7 @@ Print all settings before running and sh + Changes the behaviour of the program slightly. A success message including the + effective target device ID is put out and a syslog notice is issued. Mainly for + integration with a wrapper script +-.IP "\fB-s\fP \fB\-\-success NUM\fP " 10 ++.IP "\fB-s\fP \fB\-\-check-success NUM\fP " 10 + After switching, keep checking for the result up to max. NUM seconds. If target IDs + or target class were provided, their appearance indicates certain success. Otherwise + the disconnection of the original device is rated as likely proof +diff -up usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.c +--- usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages 2013-08-20 12:12:10.752953754 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch.c 2013-08-20 12:37:27.415242925 +0200 +@@ -1968,11 +1968,12 @@ void printHelp() + " -V, --target-vendor NUM target mode vendor ID (optional)\n" + " -P, --target-product NUM target mode product ID (optional)\n" + " -C, --target-class NUM target mode device class (optional)\n" +- " -b, --busnum NUM system bus number of device (for hard ID)\n" +- " -g, --devnum NUM system device number (for hard ID)\n" ++ " -b, --bus-num NUM system bus number of device (for hard ID)\n" ++ " -g, --device-num NUM system device number (for hard ID)\n" + " -m, --message-endpoint NUM direct the message transfer there (optional)\n" + " -M, --message-content message to send (hex number as string)\n" +- " -2 , -3 additional messages to send (-n recommended)\n" ++ " -2, --message-content2 additional messages to send (-n recommended)\n" ++ " -3, --message-content3 additional messages to send (-n recommended)\n" + " -n, --need-response read response to the message transfer (CSW)\n" + " -r, --response-endpoint NUM read response from there (optional)\n" + " -d, --detach-only detach the active driver, no further action\n" +@@ -1989,10 +1990,11 @@ void printHelp() + " -Z, --blackberry-mode apply a special procedure\n" + " -F, --pantech-mode apply a special procedure\n" + " -R, --reset-usb reset the device after all other actions\n" ++ " -w, --release-delay delay releasing the interface\n" + " -Q, --quiet don't show progress or error messages\n" + " -W, --verbose print all settings and debug output\n" + " -D, --sysmode specific result and syslog message\n" +- " -s, --success switching result check with timeout\n" ++ " -s, --check-success switching result check with timeout\n" + " -I, --no-inquire do not get SCSI attributes (default on)\n\n" + " -c, --config-file load long configuration from file\n\n" + " -t, --stdinput read long configuration from stdin\n\n" +diff -up usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 +--- usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages 2013-08-20 11:59:15.467713141 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 2013-08-20 12:57:51.913947292 +0200 +@@ -0,0 +1,18 @@ ++.TH "USB_MODESWITCH_DISPATCHER" "1" ++.SH "NAME" ++usb_modeswitch_dispatcher - dispatcher not intended for direct invocation. ++.SH "SYNOPSIS" ++.PP ++\fBusb_modeswitch_dispatcher\fR ++.SH "DESCRIPTION" ++.PP ++usb_modeswitch_dispatcher is doing additional device checking and ++using the usb_modeswitch binary to switch with the selected device config file. ++If no drivers are taking care of the device after the mode switch, the dispatcher ++will try to load and bind the "option" serial driver, in order to make the device ++usable. ++.PP ++This program is called by udev and is not supposed to be called directly ++by the user. ++.SH SEE ALSO ++.BR usb_modeswitch(1). diff --git a/usb_modeswitch-dir.patch b/usb_modeswitch-dir.patch deleted file mode 100644 index a4805c7..0000000 --- a/usb_modeswitch-dir.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur usb-modeswitch-1.1.2/Makefile usb-modeswitch-1.1.2.dir/Makefile ---- usb-modeswitch-1.1.2/Makefile 2010-04-17 23:57:11.000000000 +0530 -+++ usb-modeswitch-1.1.2.dir/Makefile 2010-04-20 10:28:04.345041264 +0530 -@@ -7,7 +7,7 @@ - PREFIX = $(DESTDIR)/usr - ETCDIR = $(DESTDIR)/etc - UDEVDIR = $(DESTDIR)/lib/udev --SBINDIR = $(PREFIX)/sbin -+SBINDIR = $(PREFIX)/bin - MANDIR = $(PREFIX)/share/man/man1 - - .PHONY: clean diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index d517303..e0e9222 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 1.2.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -10,6 +10,7 @@ License: GPLv2+ URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt +Patch0: rhbz948451-fix-manual-pages.patch Requires: usb_modeswitch-data >= 20121109 BuildRequires: libusb-devel @@ -29,7 +30,8 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %prep %setup -q -n %{source_name}-%{version} -cp -f %{SOURCE1} device_reference.txt +cp -f %{SOURCE1} device_reference.txt +%patch0 -p1 -b .fix-manual-pages # convert device_reference.txt encoding to UTF-8 iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \ @@ -52,6 +54,7 @@ install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 +gzip -9c usb_modeswitch_dispatcher.1 > usb_modeswitch_dispatcher.1.gz && install -m 644 usb_modeswitch_dispatcher.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modeswitch @@ -61,12 +64,17 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz +%{_mandir}/man1/usb_modeswitch_dispatcher.1.gz %{_prefix}/lib/udev/usb_modeswitch %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Tue Aug 28 2013 Thomas Haller 1.2.7-3 +- Add manual page for usb_modeswitch_dispatcher and fix errors in + manual page of usb_modeswitch (rhbz#948451, rhbz#884203). + * Mon Aug 26 2013 Dan Williams - 1.2.7-2 - Fix udev helper path @@ -146,7 +154,7 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes - Version bump * Thu Mar 4 2010 Huzaifa Sidhpurwala 1.1.0-3 -- Patch usb_modeswtich to use the binary from /usr/bin/ +- Patch usb_modeswitch to use the binary from /usr/bin/ - usb_modeswitch-data needs tcl * Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-2 From f26b0a5f273f50d38143b5fbf9cc4e8b7fdc9d57 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 28 Aug 2013 08:22:53 -0500 Subject: [PATCH 15/73] Fix wrong date in changelog --- usb_modeswitch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index e0e9222..219461a 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -71,7 +71,7 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog -* Tue Aug 28 2013 Thomas Haller 1.2.7-3 +* Wed Aug 28 2013 Thomas Haller 1.2.7-3 - Add manual page for usb_modeswitch_dispatcher and fix errors in manual page of usb_modeswitch (rhbz#948451, rhbz#884203). From cf5eb630ae62415f5bd45b48e1d22b04df21aa35 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 28 Aug 2013 08:22:53 -0500 Subject: [PATCH 16/73] Fix wrong date in changelog --- usb_modeswitch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index e0e9222..219461a 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -71,7 +71,7 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog -* Tue Aug 28 2013 Thomas Haller 1.2.7-3 +* Wed Aug 28 2013 Thomas Haller 1.2.7-3 - Add manual page for usb_modeswitch_dispatcher and fix errors in manual page of usb_modeswitch (rhbz#948451, rhbz#884203). From 12b044642567845ae82d982afbc5e34bab9ae8b6 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 6 Jan 2014 18:09:24 +0000 Subject: [PATCH 17/73] - Update to 2.0.1 and build against libusbx (RHBZ 994974) - Use distro jimtcl (RHBZ 967314) - Fix build on aarch64 - Cleanup and modernise spec --- .gitignore | 14 +- device_reference.txt | 4016 +++++++++++++++++++++++++++++ rhbz948451-fix-manual-pages.patch | 99 - sources | 3 +- usb_modeswitch.spec | 89 +- 5 files changed, 4033 insertions(+), 188 deletions(-) create mode 100644 device_reference.txt delete mode 100644 rhbz948451-fix-manual-pages.patch diff --git a/.gitignore b/.gitignore index 5d26b63..f6d8a0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1 @@ -usb-modeswitch-1.1.3.tar.bz2 -usb-modeswitch-1.1.4.tar.bz2 -/usb-modeswitch-1.1.6.tar.bz2 -/usb-modeswitch-1.1.7.tar.bz2 -/usb-modeswitch-1.1.9.tar.bz2 -/device_reference.txt -/usb-modeswitch-1.2.0.tar.bz2 -/usb-modeswitch-1.2.1.tar.bz2 -/usb-modeswitch-1.2.2.tar.bz2 -/usb-modeswitch-1.2.4.tar.bz2 -/usb-modeswitch-1.2.5.tar.bz2 -/usb-modeswitch-1.2.6.tar.bz2 -/usb-modeswitch-1.2.7.tar.bz2 +/usb-modeswitch-*.tar.bz2 diff --git a/device_reference.txt b/device_reference.txt new file mode 100644 index 0000000..16c638c --- /dev/null +++ b/device_reference.txt @@ -0,0 +1,4016 @@ +# +# Device and Configuration Reference (UTF-8 encoding used) +# +# Last modified: 2013-11-13 +# +# Collection of configurations for usb_modeswitch, a mode switching +# tool for controlling flip flop (multiple mode) USB devices +# +# Detailed instructions and a friendly forum on the homepage: +# http://www.draisberghof.de/usb_modeswitch +# +# You may want to check for a newer version of this file at: +# http://www.draisberghof.de/usb_modeswitch/device_reference.txt + + +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # +# +# Don't use this file directly; for your own experiments, create a +# config file, copy data from here, and use it with the -c parameter! +# +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + + +# For custom settings: +# Numbers can be decimal or hexadecimal, MessageStrings MUST be +# hexadecimal without prepended "0x". Digits 9-16 in the known +# MessageStrings are arbitrary; I set them to "12345678" + +# What it all means (short command line flags appended): +# +# +# * DefaultVendor -v +# * DefaultProduct -p +# +# This is the ID the USB device shows after having been plugged in. +# The program needs this, either on the command line or in the config +# file; if not found -> no action. +# +# +# * TargetVendor -V +# * TargetProduct -P +# +# These are the IDs of the USB device after successful mode switching. +# They are optional, but I recommend to provide them for better analysis. +# You definitely need them if you enable CheckSuccess (see below) +# +# +# * TargetProductList (file only) +# +# Like TargetProduct, but more than one possibility. Only used in automated +# config files (in /etc/usb_modeswitch.d). +# +# +# * TargetClass -C +# +# Some weird devices don't change IDs. They only switch the device class. +# If the device has the target class -> no action (and vice versa) +# +# +# * MessageEndpoint -m +# +# A kind of address inside the interface to which the "message" +# (the sequence that does the actual switching) is directed. +# Obsolete since version 0.9.7, only useful for testing +# +# +# * MessageContent -M +# +# A hex string containing the "message" sequence; it will be +# sent as a USB bulk transfer +# +# +# * MessageContent2, ...3 -2/-3 +# +# Additional "messages". Use with "NeedResponse"! +# +# +# * ReleaseDelay -w +# +# Waiting time after message transfers. Helps with some sensitive devices +# that don't want any traffic after the mode switch initialisation +# +# +# * ResponseEndpoint -r +# * NeedResponse <0/1> -n +# +# Some devices were reported to require receiving the response of the +# bulk transfer to do the switching properly. Usually not needed. +# Starting from version 1.0.0 the ResponseEndpoint is autodetected +# if not given +# +# +# * DetachStorageOnly <0/1> -d +# +# Some early devices just needed to be detached from the usb-storage +# driver to initiate the mode switching. Now paractically obsolete for +# switching, but still comes handy sometimes +# +# +# * HuaweiMode <0/1> -H +# +# Some early Huawei devices can be switched by a special control +# message. Don't use with recent devices +# +# +# * SonyMode <0/1> -O +# +# Some Sony-Ericsson devices can be switched by a special control +# message. May take a long time (20+ seconds). +# +# +# * SierraMode <0/1> -S +# * KobilMode <0/1> -T +# * GCTMode <0/1> -G +# * SequansMode <0/1> -N +# * MobileActionMode <0/1> -A +# * QisdaMode <0/1> -B +# * QuantaMode <0/1> -E +# * PantechMode <0/1> -F +# * BlackberryMode <0/1> -Z +# * CiscoMode <0/1> -L +# +# +# Flags to support devices that need special control messages. +# The names are referring to the respective manufacturers. +# +# +# * ResetUSB <0/1> -R +# +# Few devices or systems need a rougher treatment. If the switching seems +# to do something but your system does not reflect it, try this somewhat +# brutal method to do a reset after switching. +# Mind that if your device switched OK before, this may set it back to +# storage mode ... +# +# +# * Interface -i +# * Configuration -u +# * AltSetting -a +# +# More USB parameter to help with tricky devices and for doing lots +# of cruel experiments ... +# +## Note: +## AltSetting/Configuration changes and ResetUSB are executed after all +## other steps and can be combined or used on their own (e.g. a reset +## might have the same effect as a manual replug) +# +# +# * InquireDevice <0|1> -I (disables inquiry) +# +# The standard since 1.0.0 is to do a SCSI inquiry on the default device +# before other actions. This might be a future way to identify a device +# without ambiguities. If it causes trouble with your device, just disable. +# +# +# * CheckSuccess -s +# +# Check continuously if the switch succeeded for max seconds. +# First, an interface access test: most devices vanish after +# switching and can't be accessed anymore. +# Second, a recount of target devices: one more than at the initial +# count, at the same bus with a higher device number -> device +# switched fine. +# It's safe to give a higher value than needed; checking stops as +# soon as the target device is found +# +# +# * NoDriverLoading <0|1> (no command line parameter) +# +# The binary tells the wrapper script NOT to check for and initiate +# binding of the serial driver after switching. +# Mostly useful for non-modem devices. +# +# +# * WaitBefore (no command line parameter) +# +# Waiting time before taking any action. Helps with some sensitive setups. +# +# +# * NoMBIMCheck <0|1> (no command line parameter) +# +# Disable the check for new MBIM standard devices, which is always done +# by default. +# +# +# +# -> All other entries in config files are just ignored <- + +# Additional command line flags: +# +# Verbose output -W +# No output at all -q +# Use config file -c +# Use stdin for long config -t +# Give long config as string -f +# Give bus number for ID'ing -b +# Give dev number for ID'ing -g + + +# For filling in all this information for an unknown device, +# see instructions and links on the homepage: +# http://www.draisberghof.de/usb_modeswitch +# +# If you find working codes and configurations, please contribute +# them! + + +####################################################### +# Option GlobeSurfer Icon (aka "Vodafone EasyBox") +# +# The MessageContent is identical for all Option devices + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x0af0 +TargetProduct= 0x6600 + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + + +####################################################### +# Option GlobeSurfer Icon 7.2 +# +# Contributor: The Pharscape Forum + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x0af0 +TargetProduct= 0x6901 + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + + +######################################################## +# Option GlobeTrotter GT MAX 3.6 (aka "T-Mobile Web'n'walk Card Compact II") +# +# Contributor: Bernd Holzmüller + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x0af0 +TargetProduct= 0x6600 + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + +# ResponseEndpoint=0x84 + +NeedResponse=1 + + +######################################################## +# Option GlobeTrotter GT MAX "7.2 Ready" +# +# Contributors: Lucas Benedicic, Morgwai Kotarbinski + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x0af0 +TargetProduct= 0x6701 + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + + +######################################################## +# Option GlobeTrotter EXPRESS 7.2 (aka "T-Mobile wnw Express II") +# +# Contributor: Fridtjof Busse + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x0af0 +TargetProduct= 0x6701 + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + +# Response reading needed according to one (1) report +NeedResponse=1 + + +####################################################### +# Option GlobeSurfer Icon 7.2, new firmware (HSO driver) +# +# Vendor/ProductID don't change when switching, only the device +# class does. Most new Option devices work with this. Just adapt the IDs. +# +# Option's HSO driver is part of the mainstream kernel; support is +# available at Pharscape (www.pharscape.org) +# +# Contributors: Paul Hardwick, Philip Aben + +DefaultVendor= 0x0af0 +DefaultProduct= 0x6911 + +TargetClass= 0xff + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + +# Here is a list with all currently supported Option default IDs: +# +# 0af0:6711 +# 0af0:6731 +# 0af0:6751 +# 0af0:6771 +# 0af0:6791 +# 0af0:6811 +# 0af0:6911 +# 0af0:6951 +# 0af0:6971 +# 0af0:7011 +# 0af0:7031 +# 0af0:7051 +# 0af0:7071 +# 0af0:7111 +# 0af0:7211 +# 0af0:7251 +# 0af0:7271 +# 0af0:7301 +# 0af0:7311 +# 0af0:7361 +# 0af0:7381 +# 0af0:7401 +# 0af0:7501 +# 0af0:7601 +# 0af0:7701 +# 0af0:7801 +# 0af0:7901 +# 0af0:7a01 +# 0af0:7a05 +# 0af0:8200 +# 0af0:8201 +# 0af0:8300 +# 0af0:8302 +# 0af0:8304 +# 0af0:8400 +# 0af0:8600 +# 0af0:8800 +# 0af0:8900 +# 0af0:9000 +# 0af0:c031 +# 0af0:c100 +# 0af0:d013 +# 0af0:d031 +# 0af0:d033 +# 0af0:d035 +# 0af0:d055 +# 0af0:d057 +# 0af0:d058 +# 0af0:d155 +# 0af0:d157 +# 0af0:d255 +# 0af0:d257 +# 0af0:d357 + + + +######################################################## +# Option iCON 210 +# PROLiNK PHS100 (various looks) +# Hyundai Mobile MB-810 +# +# One report of switching with DetachStorageOnly. Needs at least +# a second to settle before binding to usbserial +# +# Contributor: wahlm, Peter Kraker, Pakdhetimin Sekum + +DefaultVendor= 0x1e0e +DefaultProduct= 0xf000 + +TargetVendor= 0x1e0e +TargetProduct= 0x9000 + +MessageContent="555342431234567800000000000006bd000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# AT&T USBConnect Quicksilver (made by Option, HSO driver) +# +# Contributor: sissie from Bullteam + +DefaultVendor= 0x0af0 +DefaultProduct= 0xd033 + +TargetClass= 0xff + +MessageContent="55534243785634120100000080000601000000000000000000000000000000" + + +######################################################## +# Huawei devices +# +# Contributor: Hans Kurent, Denis Sutter, Vincent Teoh + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1003 + +TargetClass= 0xff + +HuaweiMode=1 + + +######################################################## +# Huawei E169 and others +# +# Contributor: Dale Lane + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1001 + +TargetClass= 0xff + +# choose one of these: +DetachStorageOnly=1 +HuaweiMode=1 + + +######################################################## +# Huawei E180 +# +# Contributor: Tom Dawahare + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1414 + +TargetClass= 0xff + +HuaweiMode=1 + + +######################################################## +# Huawei E630 +# +# There seem to be modem-only variants around - no storage, +# no switching +# +# Contributor: Joakim Wenrgren + +DefaultVendor= 0x1033 +DefaultProduct= 0x0035 + +TargetVendor= 0x12d1 +TargetProduct= 0x1003 + +HuaweiMode=1 + + +######################################################## +# ZTE MF620 (aka "Onda MH600HS") +# +# Probably works with DetachStorageOnly too +# +# Contributor: Flávio Moringa and others + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProductList="0001" + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MF622 (aka "Onda MDC502HS"), MF100 and others +# +# Contributor: andylog + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0002 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MF628 +# +# Captured with "usbmon". Has a micro SD slot which can be +# activated alternatively +# +# Contributor: Alvaro Lopes + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + + +# To modem mode: + +TargetVendor= 0x19d2 +TargetProduct= 0x0015 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + +# To SD slot mode: + +TargetVendor= 0x05c6 +TargetProduct= 0x2001 + +MessageContent="55534243123456782000000080000a86010101180101010101000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MF622 (aka "Onda MDC502HS") +# ZTE MF626 +# ZTE MF628+ (tested version from Telia / Sweden) +# ZTE MF633 +# ZTE MF636 (aka "Telstra / BigPond 7.2 Mobile Card") +# ZTE MF637 +# and probably others not listed here +# +# Contributor: Joakim Wennergren and others + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0031 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MF638 (aka "Onda MDC525UP") +# +# Contributor: andylog + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0037 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE AC8710 +# ZTE AC2726 +# and others +# +# Many new ZTE devices use this sequence. There are +# several ID combinations; check your default +# +# Contributor: Michael Khurtsiya, Amit Pundir and others + +DefaultVendor= 0x19d2 +DefaultProduct= 0xfff5 + +TargetVendor= 0x19d2 +TargetProduct= 0xffff + +# No. 2 + +DefaultVendor= 0x19d2 +DefaultProduct= 0xfff6 + +TargetVendor= 0x19d2 +TargetProduct= 0xfff1 + +# No. 3 + +DefaultVendor= 0x19d2 +DefaultProduct= 0xfff5 + +TargetVendor= 0x19d2 +TargetProduct= 0xfff1 + +MessageContent="5553424312345678c00000008000069f030000000000000000000000000000" + + +######################################################## +# ZTE AC2710 (EVDO) +# +# Contributor: Wasim Baig + +DefaultVendor= 0x19d2 +DefaultProduct= 0xfff5 + +TargetVendor= 0x19d2 +TargetProduct= 0xffff + +MessageContent="5553424312345678c00000008000069f010000000000000000000000000000" + +# Just for information: try it with the message from the AC8710 ... + + +######################################################## +# ZTE 6535-Z +# +# Contributor: David Taillandier + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0052 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ONDA MT503HS +# +# Contributor: Lucio Asnaghi a.k.a. kRAkEn/gORe + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0002 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ONDA MT505UP (most likely a ZTE model) +# +# Contributor: Alex Scortegagna + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0002 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Novatel Wireless Ovation MC950D HSUPA +# Novatel Wireless Merlin XU950D +# Novatel Wireless Ovation 930D +# +# Contributor: Razvan Dragomirescu, Mike Kirk + +DefaultVendor= 0x1410 +DefaultProduct= 0x5010 + +TargetVendor= 0x1410 +TargetProduct= 0x4400 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Novatel U727 USB modem +# +# Modem only versions (no switching required) are around. +# +# Contributor: Chris Thielen + +DefaultVendor= 0x1410 +DefaultProduct= 0x5010 + +TargetVendor= 0x1410 +TargetProduct= 0x4100 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Novatel MC990D +# +# Contributor: Joakim Wennergren + +DefaultVendor= 0x1410 +DefaultProduct=0x5020 + +DefaultVendor= 0x1410 +TargetProductList="6000,7001" + +# Don't use this, original report must be wrong, +# https://bugzilla.redhat.com/show_bug.cgi?id=728318 +# +# Interface=5 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Novatel U760 USB modem +# +# Contributor: Richard Laager + +DefaultVendor= 0x1410 +DefaultProduct= 0x5030 + +TargetVendor= 0x1410 +TargetProduct= 0x6000 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Alcatel One Touch X020 (aka OT-X020, aka MBD-100HU, aka Nuton 3.5G), works with Emobile D11LC +# Alcatel One Touch X030 (aka OT-X030, aka Nuton NT36HD) +# +# Contributor: Aleksandar Samardzic, Marcelo Fernandez + +DefaultVendor= 0x1c9e +DefaultProduct= 0x1001 + +TargetVendor= 0x1c9e +TargetProduct= 0x6061 + +MessageContent="55534243123456780000000000000606f50402527000000000000000000000" + + +######################################################## +# Alcatel X200/X060S + +DefaultVendor= 0x1bbb +DefaultProduct= 0xf000 + +TargetVendor= 0x1bbb +TargetProduct= 0x0000 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# AnyDATA ADU-500A, ADU-510A, ADU-510L, ADU-520A +# +# This ID gets an "Option" treatment by newer kernels. +# Use module option "option_zero_cd=2" with usb-storage. +# A kernel patch to fix the problem is pending +# +# Contributor: Vladimir Poluektov, Gabriel Smolar + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x16d5 +TargetProduct= 0x6502 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# BandLuxe C120 +# +# Reportedly needs several switch calls in a certain order. See +# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=71 +# This might be a case to try the new ResetUSB function +# +# Contributor: Alexander Czigler + +DefaultVendor= 0x1a8d +DefaultProduct= 0x1000 + +TargetVendor= 0x1a8d +TargetProduct= 0x1002 + +MessageContent="55534243123456781200000080000603000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Solomon S3Gm-660 +# +# Same notes apply as with the BandLuxe C120 above +# +# Contributor: Alexander Czigler + +DefaultVendor= 0x1dd6 +DefaultProduct= 0x1000 + +TargetVendor= 0x1dd6 +TargetProduct= 0x1002 + +MessageContent="55534243123456781200000080000603000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# C-motech D-50 (aka "CDU-680") +# +# Interesting notes about the device in the forum post at +# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=69 +# +# Contributor: Alexander Czigler + +DefaultVendor= 0x16d8 +DefaultProduct= 0x6803 + +TargetVendor= 0x16d8 +TargetProduct= 0x680a + +MessageContent="555342431234567824000000800008ff524445564348470000000000000000" + + +######################################################## +# C-motech CGU-628 (aka "Franklin Wireless CGU-628A" aka "4G Systems XS Stick W12") +# +# Contributor: Mathias Picker + +DefaultVendor= 0x16d8 +DefaultProduct= 0xf000 + +TargetVendor= 0x16d8 +TargetProduct= 0x6006 + +MessageContent="55534243d85dd88524000000800008ff524445564348470000000000000000" + + +######################################################## +# Toshiba G450 +# +# Contributor: Mijail Anton + +DefaultVendor= 0x0930 +DefaultProduct= 0x0d46 + +TargetVendor= 0x0930 +TargetProduct= 0x0d45 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# UTStarcom UM175 (distributor "Alltel") +# +# Contributor: Mark A. Ziesemer + +DefaultVendor= 0x106c +DefaultProduct= 0x3b03 + +TargetVendor= 0x106c +TargetProduct= 0x3715 + +MessageContent="555342431234567824000000800008ff024445564348470000000000000000" + + +######################################################## +# Hummer DTM5731 +# +# Contributor: "paul" + +DefaultVendor= 0x1ab7 +DefaultProduct= 0x5700 + +TargetVendor= 0x1ab7 +TargetProduct= 0x5731 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# A-Link 3GU +# +# Contributor: A-Link Europe Ltd. + +DefaultVendor= 0x1e0e +DefaultProduct= 0xf000 + +TargetVendor= 0x1e0e +TargetProduct= 0x9200 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Sierra Wireless Compass 597 +# +# Contributor: Vincent Teoh + +DefaultVendor= 0x1199 +DefaultProduct= 0x0fff + +TargetVendor= 0x1199 +TargetProduct= 0x0023 + +SierraMode=1 + + +######################################################## +# Sierra Wireless AirCard 881U (most likely 880U too) +# +# Contributor: Vincent Teoh + +DefaultVendor= 0x1199 +DefaultProduct= 0x0fff + +TargetVendor= 0x1199 +TargetProduct= 0x6856 + +SierraMode=1 + + +######################################################## +# Sony Ericsson MD400 +# +# Special procedure, takes around 25 secs. on the whole + +DefaultVendor= 0x0fce +DefaultProduct= 0xd0e1 + +TargetClass= 0x02 + +SonyMode=1 +Configuration=2 + + +######################################################## +# LG LDU-1900D EV-DO (Rev. A) +# +# Recommended init command: ATE0V1&D2&C1S0=0 +# +# Contributor: Jérôme Oufella + +DefaultVendor= 0x1004 +DefaultProduct= 0x1000 + +MessageContent="55534243123456780000000000000aff554d53434847000000000000000000" + + +######################################################## +# Samsung SGH-Z810 USB (with microSD card) +# +# This ID gets a wrong "Option" treatment by newer kernels +# from 2.6.29 to 2.6.31 +# Use module option "option_zero_cd=2" with usb-storage. +# Problem fixed in 2.6.32 +# +# Contributor: A Friend + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x04e8 +TargetProduct= 0x6601 + +MessageContent="55534243123456780000000000000616000000000000000000000000000000" + + +######################################################## +# MobiData MBD-200HU +# +# Contributor: Stefan Olejnik + +DefaultVendor= 0x1c9e +DefaultProduct= 0xf000 + +TargetVendor= 0x1c9e +TargetProduct= 0x9000 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# ST Mobile Connect HSUPA USB Modem +# +# Use /dev/ttyUSB2 for connecting +# +# Contributor: Vincent Teoh + +DefaultVendor= 0x1c9e +DefaultProduct= 0xf000 + +TargetVendor= 0x1c9e +TargetProduct= 0x9063 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# MyWave SW006 Sport Phone/Modem Combination +# +# Has a card reader too, working fine +# +# Contributor: Aaron Guidazzi + +DefaultVendor= 0x1c9e +DefaultProduct= 0x9200 + +TargetVendor= 0x1c9e +TargetProduct= 0x9202 + +MessageContent="55534243123456780000000000000606f50402527000000000000000000000" + + +######################################################## +# Cricket A600 +# +# Switches to ACM device. Might need a ResetUSB after switching - or not +# +# Contributor: Jeffrey Hoogland + +DefaultVendor= 0x1f28 +DefaultProduct= 0x0021 + +TargetVendor= 0x1f28 +TargetProduct= 0x0020 + +MessageContent="555342431234567824000000800108df200000000000000000000000000000" + +# Afterwards (optional): "usb_modeswitch -v 0x1f28 -p 0x0020 -R" + + +######################################################## +# EpiValley SEC-7089 (featured by Alegro and Starcomms / iZAP) +# +# Contributor: Chris Wright + +DefaultVendor= 0x1b7d +DefaultProduct= 0x0700 + +TargetVendor= 0x1b7d +TargetProduct= 0x0001 + +MessageContent="555342431234567824000000800008FF05B112AEE102000000000000000000" + + +######################################################## +# Samsung U209 +# +# Has a modem and a storage device after switching +# +# Contributor: Arif Ahmed + +DefaultVendor= 0x04e8 +DefaultProduct= 0xf000 + +TargetVendor= 0x04e8 +TargetProduct= 0x6601 + +MessageContent="55534243123456780000000000000616000000000000000000000000000000" + + +######################################################## +# Huawei E270+ (HSPA+ modem) +# Huawei E1762 +# Huawei E1820 +# +# Contributor: Paranoid Paranoia + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1446 + +TargetVendor= 0x12d1 +TargetProduct= 0x14ac + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################################## +# Huawei E1550 +# Huawei E1750 +# +# Contributor: Anders Blomdell, Ahmed Soliman + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1446 + +TargetVendor= 0x12d1 +TargetProduct= 0x1001 + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################################## +# ZTE K3520-Z +# +# Contributor: Paul McDermott + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0055 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# MobiData MBD-200HU (aka 4G XS Stick W10/W14, aka Micromax MMX 300G, +# aka ChinaBird CBCPL68) +# +# Contributor: Chris + +DefaultVendor= 0x1c9e +DefaultProduct= 0xf000 + +TargetVendor= 0x1c9e +TargetProduct= 0x9603 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# D-Link DWM-162-U5, Micromax MMX 300c +# +# Contributor: Zhang Le + +DefaultVendor= 0x05c6 +DefaultProduct= 0x2001 + +TargetVendor= 0x1e0e +TargetProductList="ce16,cefe" + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Novatel MC760 3G +# +# Contributor: Matt Roberds + +DefaultVendor= 0x1410 +DefaultProduct= 0x5031 + +TargetVendor= 0x1410 +TargetProduct= 0x6002 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MF110 (Variant) +# +# Contributor: Moritz Grosse-Wentrup + +DefaultVendor= 0x19d2 +DefaultProduct= 0x0053 + +TargetVendor= 0x19d2 +TargetProduct= 0x0031 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +MessageContent2="55534243876543212000000080000c85010101180101010101000000000000" + +NeedResponse=1 + + +######################################################## +# Philips TalkTalk (NXP Semiconductors "Dragonfly") +# + +DefaultVendor= 0x0471 +DefaultProduct= 0x1237 + +TargetVendor= 0x0471 +TargetProduct= 0x1234 + +MessageContent="5553424312345678000000000000061b000000030000000000000000000000" + +NeedResponse=1 + + +######################################################## +# HuaXing E600 (NXP Semiconductors "Dragonfly") +# +# Contributor: Emfox Zhou + +DefaultVendor= 0x0471 +DefaultProduct= 0x1237 + +TargetVendor= 0x0471 +TargetProduct= 0x1206 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + +Configuration=2 + + +######################################################## +# ZTE K3565 +# + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0063 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Motorola 802.11 bg WLAN (TER/GUSB3-E) +# +# Contributor: Prashad Prashant + +DefaultVendor= 0x148f +DefaultProduct= 0x2578 + +TargetVendor= 0x148f +TargetProduct= 0x9021 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Huawei E1612 +# +# Contributor: Genar Codina + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1446 + +TargetVendor= 0x12d1 +TargetProduct= 0x1406 + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################################## +# Huawei E1690 +# Huawei E1692 +# Huawei E1762 +# +# Contributor: Carolin Latze and others + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1446 + +TargetVendor= 0x12d1 +TargetProduct= 0x140c + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################################## +# C-motech CHU-629S +# + +DefaultVendor= 0x16d8 +DefaultProduct= 0x700a + +TargetClass=0xff + +MessageContent="55534243123456782400000080000dfe524445564348473d4e444953000000" + + +######################################################## +# Sagem F@ST 9520-35-GLR +# +# Contributor: Yaroslav Levandovskiy + +DefaultVendor= 0x1076 +DefaultProduct= 0x7f40 + +TargetVendor= 0x1076 +TargetProduct= 0x7f00 + +GCTMode=1 + + +######################################################## +# Nokia CS-15 +# +# Contributor: Antti Turunen + +DefaultVendor= 0x0421 +DefaultProduct= 0x0610 + +TargetVendor= 0x0421 +TargetProduct= 0x0612 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Huawei K3765 +# +# Contributor: Felix Schwarz + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1520 + +TargetVendor= 0x12d1 +TargetProduct= 0x1465 + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################################## +# Huawei K4505 +# +# Contributor: Nikolaos Koutsianas + +DefaultVendor= 0x12d1 +DefaultProduct= 0x1521 + +TargetVendor= 0x12d1 +TargetProduct= 0x1464 + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################### +# Vodafone MD950 (Wisue Technology) +# +# Contributor: Bob Williams + +DefaultVendor= 0x0471 +DefaultProduct= 0x1210 + +# The report said that giving the target IDs prevented +# the device from switching. Got to try it out ... + +#TargetVendor= 0x1dbc +#TargetProduct= 0x0005 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Siptune LM-75 ("LinuxModem") +# +# Contributor: Antti Turunen + +DefaultVendor= 0x05c6 +DefaultProduct= 0xf000 + +TargetVendor= 0x05c6 +TargetProduct= 0x9000 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Zydas ZD1211RW WLAN USB, Sphairon HomeLink 1202 (Variant 1) +# +# WLAN devices from Linux kernel + +DefaultVendor= 0x0ace +DefaultProduct= 0x2011 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Zydas ZD1211RW WLAN USB, Sphairon HomeLink 1202 (Variant 2) +# +# WLAN devices from Linux kernel + +DefaultVendor= 0x0ace +DefaultProduct= 0x20ff + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Vertex Wireless 100 Series +# +# Contributor: Reinis Danne + +DefaultVendor= 0x05c6 +DefaultProduct= 0x1000 + +TargetVendor= 0x1fe7 +TargetProduct= 0x0100 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# AVM Fritz!Wlan USB Stick N +# + +DefaultVendor= 0x057c +DefaultProduct= 0x84ff + +TargetVendor= 0x057c +TargetProduct= 0x8401 + +MessageContent="5553424312345678000000000000061b000000ff0000000000000000000000" + + +######################################################## +# InfoCert Business Key (SmartCard/Reader emulation) +# +# Contributor: Bicio + +DefaultVendor= 0x072f +DefaultProduct= 0x100d + +TargetVendor= 0x072f +TargetProduct= 0x90cc + +MessageContent="01b0000000000000000000000000000000000000000000000000000000000000" + + +######################################################## +# UTStarcom UM185E (distributor "Alltel") +# +# Contributor: Jason Smith + +DefaultVendor= 0x106c +DefaultProduct= 0x3b06 + +TargetVendor= 0x106c +TargetProduct= 0x3717 + +MessageContent="555342431234567824000000800008ff020000000000000000000000000000 + + +######################################################## +# ZTE AC581 +# +# Contributor: Alberto Maurizi + +DefaultVendor= 0x19d2 +DefaultProduct= 0x0026 + +TargetVendor= 0x19d2 +TargetProduct= 0x0094 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Huawei U7510 / U7517 +# +# Contributor: Isaac Salgado + +DefaultVendor= 0x12d1 +DefaultProduct= 0x101e + +TargetClass=0xff + +MessageContent="55534243123456780600000080000601000000000000000000000000000000" + + +######################################################## +# Beceem BCSM250 +# +# Contributor: Alexander Gordeev + +DefaultVendor= 0x198f +DefaultProduct=0xbccd + +TargetVendor= 0x198f +TargetProduct= 0x0220 + +MessageContent="555342431234567824000000800006bc626563240000000000000000000000" + + +######################################################## +# LG HDM-2100 (EVDO Rev.A USB modem) +# +# Contributor: Jérôme Oufella + +DefaultVendor= 0x1004 +DefaultProduct=0x607f + +TargetVendor= 0x1004 +TargetProduct= 0x6114 + +MessageContent="1201100102000040041014610000010200018006000100001200" + + +######################################################## +# Kyocera W06K CDMA modem +# +# Contributor: Ying-Hung Lo + +DefaultVendor= 0x0482 +DefaultProduct=0x024d + +Configuration=2 + + +######################################################## +# Digicom 8E4455 +# +# Contributor: Alberto Ciampini + +DefaultVendor= 0x1266 +DefaultProduct=0x1000 + +TargetVendor= 0x1266 +TargetProduct= 0x1009 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424387654321000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Sony Ericsson MD300 +# +# Contributor: Betavine Project + +DefaultVendor= 0x0fce +DefaultProduct=0xd0cf + +TargetClass=0x02 + +DetachStorageOnly=1 +Configuration=3 + + +######################################################## +# Vodafone (ZTE) K3805-Z +# +# Contributor: Betavine Project +# +# Note: +# This device has multiple USB profiles. Depending upon how it is flipped +# from storage mode to modem mode determines its final PID and the packages +# shown on its ISO CD image. + +DefaultVendor= 0x19d2 +DefaultProduct=0x1001 + +TargetVendor= 0x19d2 +TargetProduct= 0x1003 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Franklin Wireless U210 +# +# Contributor: Adam J. Porter + +DefaultVendor= 0x1fac +DefaultProduct=0x0130 + +TargetVendor= 0x1fac +TargetProduct= 0x0131 + +MessageContent="555342431234567824000000800108df200000000000000000000000000000" + + +######################################################## +# Alcatel X220L, X215S +# +# Contributor: John Watt + +DefaultVendor= 0x1bbb +DefaultProduct= 0xf000 + +TargetVendor= 0x1bbb +TargetProduct= 0x0017 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# ZTE MF112 +# +# Contributors: Akos Ladanyi, John Talbut + +DefaultVendor= 0x19d2 +DefaultProduct= 0x0103 + +TargetVendor= 0x19d2 +TargetProduct= 0x0031 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +MessageContent2="55534243876543212000000080000c85010101180101010101000000000000" + +NeedResponse=1 + + +######################################################## +# Olivetti Olicard 100 and others +# +# Contributor: Nils Radtke + +DefaultVendor= 0x0b3c +DefaultProduct= 0xc700 + +TargetVendor= 0x0b3c +TargetProductList="c000,c001,c002" + +MessageContent="5553424312345678000000000000061b000000030000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MF110 (Variant) +# +# Contributor: uusrlnx + +DefaultVendor= 0x19d2 +DefaultProduct= 0x0083 + +TargetVendor= 0x19d2 +TargetProduct= 0x0124 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MU351 + +DefaultVendor= 0x19d2 +DefaultProduct= 0x0003 + +TargetClass=0xff + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# LG L-05A + +DefaultVendor= 0x1004 +DefaultProduct= 0x613a + +TargetVendor= 0x1004 +TargetProduct= 0x6124 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# LG LUU-2100TI (aka AT&T USBConnect Turbo) +# +# Contributor: Chris Jager + +DefaultVendor= 0x1004 +DefaultProduct= 0x613f + +TargetVendor= 0x1004 +TargetProduct= 0x6141 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# LG KP500 Cookie Phone - UNTESTED! Please report! +# +# Contributor: Oliver Mattos + +DefaultVendor= 0x1004 +DefaultProduct=0x607f + +TargetVendor= 0x1004 +TargetProduct= 0x6000 + +MessageContent="555342431234567803000000800006f1022000000000000000000000000000" +MessageContent2="555342438765432103000000800006f1010100000000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Royaltek Q110 - UNCONFIRMED! + +DefaultVendor= 0x1266 +DefaultProduct=0x1000 + +TargetVendor= 0x1266 +TargetProduct= 0x1009 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424387654321000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# BandRich BandLuxe C170, BandLuxe C270 + +DefaultVendor= 0x1a8d +DefaultProduct=0x1000 + +TargetVendor= 0x1a8d +TargetProduct= 0x1009 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" +ReleaseDelay=4000 + +NeedResponse=1 + + +######################################################## +# Vodafone (Huawei) K4605 +# +# Contributor: Betavine Project + +DefaultVendor= 0x12d1 +DefaultProduct=0x14c1 + +TargetVendor= 0x12d1 +TargetProduct= 0x14c6 + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################################## +# Huawei R201 +# +# Contributor: Betavine Project + +DefaultVendor= 0x12d1 +DefaultProduct=0x1523 + +TargetVendor= 0x12d1 +TargetProduct= 0x1491 + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +######################################################## +# Atheros Wireless / Netgear WNDA3200 +# +# Contributor: Sujith Manoharan (Atheros) + +DefaultVendor= 0x0cf3 +DefaultProduct=0x20ff + +TargetVendor= 0x0cf3 +TargetProduct= 0x7010 + +NoDriverLoading=1 + +MessageContent="5553424329000000000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Onda MW833UP +# +# Contributor: Riccardo Sepe aka zeroidle + +DefaultVendor= 0x1ee8 +DefaultProduct=0x0013 + +TargetVendor= 0x1ee8 +TargetProduct= 0x0012 + +MessageContent="555342431234567800000000000010ff000000000000000000000000000000" +ResponseNeeded=1 + + +######################################################## +# Huawei U8110 / U8300 / Joy, Vodafone 845 (Android smartphone) +# +# Contributor: David Erosa García + +DefaultVendor= 0x12d1 +DefaultProduct=0x1031 + +TargetVendor= 0x12d1 +TargetProduct= 0x1035 + +MessageContent="55534243123456780600000080010a11060000000000000000000000000000" + +# for Android SDK +NoDriverLoading=1 + + +######################################################## +# Nokia CS-10 +# +# Contributor: WacÅ‚aw Sierek + +DefaultVendor= 0x0421 +DefaultProduct=0x060c + +TargetVendor= 0x0421 +TargetProduct= 0x060e + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# ZTE WCDMA Stick from BNSL +# +# Contributor: Anoop John + +DefaultVendor= 0x19d2 +DefaultProduct= 0x2000 + +TargetVendor= 0x19d2 +TargetProduct= 0x0108 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# BSNL Capitel + +DefaultVendor= 0x1c9e +DefaultProduct= 0x9e00 + +TargetClass=0xff + +MessageContent="55534243123456780000000000000606f50402527000000000000000000000" + + +####################################################### +# Samsung GT-B3730 +# +# Contributor: Per Øyvind Karlsen + +DefaultVendor= 0x04e8 +DefaultProduct=0x689a + +TargetVendor= 0x04e8 +TargetProduct= 0x6889 + +MessageContent="55534243785634120100000080000601000000000000000000000000000000" + +####################################################### +# Kobil mIdentity 3G (1) +# +# Contributor: Filip Aben + +DefaultVendor= 0x0d46 +DefaultProduct=0x45a1 + +TargetVendor= 0x0d46 +TargetProduct= 0x45a9 + +KobilMode=1 + + +####################################################### +# Kobil mIdentity 3G (2) +# +# Contributor: Filip Aben + +DefaultVendor= 0x0d46 +DefaultProduct=0x45a5 + +TargetVendor= 0x0d46 +TargetProduct= 0x45ad + +KobilMode=1 + + +######################################################## +# Onda MW833UP +# +# Contributor: Enrico Mioso + +DefaultVendor= 0x1ee8 +DefaultProduct=0x0009 + +TargetVendor= 0x1ee8 +TargetProduct= 0x000b + +MessageContent="555342431234567800000000000010ff000000000000000000000000000000" +NeedResponse=1 + + +######################################################## +# Olivetti Olicard 145 +# +# Contributor: Pierre-Andre Cornillon + +DefaultVendor= 0x0b3c +DefaultProduct=0xf000 + +TargetVendor= 0x0b3c +TargetProduct= 0xc003 + +MessageContent="5553424312345678c000000080010606f50402527000000000000000000000" +NeedResponse=1 + + +####################################################### +# Huawei EC168C (from Zantel) +# +# Contributor: Ã…smund Hjulstad + +DefaultVendor= 0x12d1 +DefaultProduct=0x1446 + +TargetVendor= 0x12d1 +TargetProduct= 0x1412 + +MessageContent="55534243123456780000000000000011060000000000000000000000000000" + + +####################################################### +# Nokia CS-17 +# +# Contributor: Juho Frits + +DefaultVendor= 0x0421 +DefaultProduct=0x0622 + +TargetVendor= 0x0421 +TargetProduct= 0x0623 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Nokia CS-18 +# +# Contributor: Thomas Behan + +DefaultVendor= 0x0421 +DefaultProduct=0x0627 + +TargetVendor= 0x0421 +TargetProduct= 0x0612 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Qtronix EVDO 3G Modem (for TianYi) +# +# Contributor: Alexey Charkov + +DefaultVendor= 0x05c7 +DefaultProduct=0x1000 + +TargetVendor= 0x05c7 +TargetProduct= 0x6000 + +MessageContent="5553424312345678c00000008000069f140000000000000000000000000000" + + +####################################################### +# GW D301 (Advinne AMC) +# + +DefaultVendor= 0x0fd1 +DefaultProduct=0x1000 + +TargetClass=0xff + +Configuration=3 + + +####################################################### +# LG AD600 +# +# Contributor: Shawn J. Goff + +DefaultVendor= 0x1004 +DefaultProduct=0x6190 + +TargetVendor= 0x1004 +TargetProduct= 0x61a7 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Pantech / UTStarcom UMW190 (Verizon) +# +# Contributor: Noel J. Bergman, Gus Esquivel + +DefaultVendor= 0x106c +DefaultProduct=0x3b05 + +TargetVendor= 0x106c +TargetProduct= 0x3716 + +MessageContent="555342431234567824000000800008ff020000000000000000000000000000" + + +####################################################### +# AirPlus MCD-800 +# + +DefaultVendor= 0x1edf +DefaultProduct=0x6003 + +TargetClass=0xff + +Configuration=3 + + +####################################################### +# Linktop LW272/LW273 (BSNL Teracom) +# +# Contributor: Amit Mendapara + +DefaultVendor= 0x230d +DefaultProduct=0x0001 + +TargetClass=0xff + +Configuration=3 + + +######################################################## +# MediaTek Wimax USB Card +# + +DefaultVendor= 0x0e8d +DefaultProduct=0x7109 + +TargetVendor= 0x0e8d +TargetProduct= 0x7118 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NoDriverLoading=1 + + +######################################################## +# C-motech CHU-628S +# +# Contributor: Jungwon Seo + +DefaultVendor= 0x16d8 +DefaultProduct=0x6281 + +TargetClass=0xff + +MessageContent="555342431234567824000000800008ff524445564348470000000000000000" + + +######################################################## +# HSDPA USB modem from dealextreme +# +# Contributor: Andrew 'Necromant' Andrianov + +DefaultVendor= 0x05c6 +DefaultProduct=0x2000 + +TargetVendor= 0x05c6 +TargetProduct= 0x0015 + +MessageContent="5553424368032c882400000080000612000000240000000000000000000000" + +NeedResponse=1 + +# This modem doesn't react fast - it pauses for some 30-40 seconds +CheckSuccess=40 + + +######################################################## +# Exiss Mobile E-190 series (made by C-motech) +# +# Contributor: Tri Mulya Saputra + +DefaultVendor= 0x8888 +DefaultProduct= 0x6500 + +TargetVendor= 0x16d8 +TargetProduct= 0x6533 + +MessageContent="5553424398e2c4812400000080000bff524445564348473d43440000000000" + + +######################################################## +# D-Link DWM-156 HSUPA 3.75G USB Modem +# +# Contributor: Fuego + +DefaultVendor= 0x07d1 +DefaultProduct=0xa800 + +TargetVendor= 0x07d1 +TargetProduct= 0x3e02 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Franklin Wireless U210 (Variant) + +DefaultVendor= 0x1fac +DefaultProduct=0x0032 + +Configuration=2 + + +######################################################## +# Haier CE 100 + +DefaultVendor= 0x201e +DefaultProduct=0x2009 + +TargetClass=0xff + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +####################################################### +# Huawei BM358 WiMAX + +DefaultVendor= 0x12d1 +DefaultProduct=0x380b + +TargetClass=0x02 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Huawei E352 +# +# Contributor: Antonio Talarico + +DefaultVendor= 0x12d1 +DefaultProduct=0x1449 + +TargetVendor= 0x12d1 +TargetProduct= 0x1444 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Huawei ET8282 +# +# Contributor: Emfox Zhou + +DefaultVendor= 0x12d1 +DefaultProduct=0x1da1 + +DefaultVendor= 0x12d1 +TargetProduct= 0x1d09 + +HuaweiMode=1 + + +######################################################## +# Huawei V725 Phone (aka Vodafone 725) + +DefaultVendor= 0x12d1 +DefaultProduct=0x1009 + +TargetClass=0xff + +HuaweiMode=1 + + +######################################################## +# Onda MW836UP-K + +DefaultVendor= 0x1ee8 +DefaultProduct=0x0040 + +TargetVendor= 0x1ee8 +TargetProduct= 0x003e + +MessageContent="555342431234567800000000000010ff000000000000000000000000000000" + +NeedResponse=1 + + +######################################################## +# ZTE MF637 (Variant for Orange France) +# +# Contributor: David Vigier + +DefaultVendor= 0x19d2 +DefaultProduct=0x0110 + +TargetVendor= 0x19d2 +TargetProduct= 0x0121 + +MessageContent="5553424302000000000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Prolink P2000 CDMA +# +# Test string: uMa=SSE + +DefaultVendor= 0x05c6 +DefaultProduct=0x1000 + +TargetVendor= 0x05c6 +TargetProduct= 0x6000 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Vibe 3G Modem +# +# Contributor: Steven James Drinnan + +DefaultVendor= 0x1c9e +DefaultProduct=0x6061 + +TargetClass=0xff + +MessageContent="55534243123456780000000000000606f50402527000000000000000000000" + + +######################################################## +# T-Mobile NL (Huawei E352) +# +# Contributor: Alex Hermann + +DefaultVendor= 0x12d1 +DefaultProduct=0x14fe + +TargetVendor= 0x12d1 +TargetProduct= 0x1506 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Huawei U8220, T-Mobile Pulse (Android smartphone) +# +# Contributor: Mobile Stream Team + +DefaultVendor= 0x12d1 +DefaultProduct=0x1030 + +TargetVendor= 0x12d1 +TargetProduct= 0x1034 + +MessageContent="55534243123456780600000080010a11060000000000000000000000000000" + +# for Android SDK +NoDriverLoading=1 + + +######################################################## +# D-Link DWM-156 HSUPA 3.75G USB Modem +# +# Contributor: Ari Suutari + +DefaultVendor= 0x07d1 +DefaultProduct=0xa804 + +TargetVendor= 0x07d1 +TargetProduct= 0x7e11 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Sony Ericsson MD400G (Rogers) +# +# Contributor: Kjartan Adolfsson + +DefaultVendor= 0x0fce +DefaultProduct= 0xd103 + +TargetClass= 0x02 + +SonyMode=1 + + +######################################################## +# ZTE "ffe" devices 1 (e.g. Cricket A605) +# +# Contributor: Matt Eaton + +DefaultVendor= 0x19d2 +DefaultProduct=0xffe6 + +TargetVendor= 0x19d2 +TargetProduct= 0xffe5 + +MessageContent="5553424330f4cf8124000000800108df200000000000000000000000000000" + + +######################################################## +# ZTE MF190 +# +# Contributor: Eshwar Andhavarapu + +DefaultVendor= 0x19d2 +DefaultProduct= 0x1224 + +TargetVendor= 0x19d2 +TargetProduct= 0x0082 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# JOA Telecom LM-700r + +DefaultVendor= 0x198a +DefaultProduct=0x0003 + +TargetVendor= 0x198a +TargetProduct= 0x0002 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Huawei E173 (Viettel 3G) + +TargetVendor= 0x12d1 +TargetProduct= 0x14a8 + +DefaultVendor= 0x12d1 +DefaultProduct=0x14b5 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# C-motech CHU-629S (Variant) +# +# Contributor: "wlsloi" + +DefaultVendor= 0x16d8 +DefaultProduct=0x700b + +TargetClass=0xff + +MessageContent="55534243123456782400000080000dfe524445564348473d4e444953000000" + + +######################################################## +# ZTE MF691 (T-Mobile Rocket 2.0) +# +# Contributor: Michael Fogel + +DefaultVendor= 0x19d2 +DefaultProduct=0x1201 + +TargetVendor= 0x19d2 +TargetProduct= 0x1203 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# ZTE MF192 + +DefaultVendor= 0x19d2 +DefaultProduct=0x1216 + +TargetVendor= 0x19d2 +TargetProduct= 0x1218 + +#MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + +# Different MessageContent enables cdc_ether interface which is preferable. +# Thanks to Alex Orlov! + +MessageContent="555342431234567800000000000010ff000000000000000000000000000000" + + +######################################################## +# ZTE MF190 (Variant) +# +# Contributor: Jean-Baptiste Dubois + +DefaultVendor= 0x19d2 +DefaultProduct=0x0149 + +TargetVendor= 0x19d2 +TargetProduct= 0x0124 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" +MessageContent3="55534243123456702000000080000c85010101180101010101000000000000" + +NeedResponse=1 + + +####################################################### +# Visiontek 82GH 3G + +DefaultVendor= 0x230d +DefaultProduct=0x0007 + +TargetClass=0xff + +Configuration=3 + + +####################################################### +# HP LaserJet Professional P1102 + +DefaultVendor= 0x03f0 +DefaultProduct=0x002a + +TargetClass=0x07 + +MessageContent="555342431234567800000000000006d0000000000000000000000000000000" + +NeedResponse=1 + + +####################################################### +# Mobile Action ("Smart Cable") +# +# No success check, device will vanish completely + +DefaultVendor= 0x0df7 +DefaultProduct=0x0800 + +TargetClass=0xff + +MobileActionMode=1 + +NoDriverLoading=1 + + +######################################################## +# Vodafone/Huawei K3770 +# +# Contributor: Alex Chiang + +DefaultVendor= 0x12d1 +DefaultProduct=0x14d1 + +TargetVendor= 0x12d1 +TargetProduct= 0x14c9 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Vodafone/Huawei K3771 +# +# Contributor: Ben Knight + +DefaultVendor= 0x12d1 +DefaultProduct=0x14c4 + +TargetVendor= 0x12d1 +TargetProduct= 0x14ca + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Option iCon 461 +# +# Contributor: Samit Basu + +DefaultVendor= 0x0af0 +DefaultProduct= 0x7a05 + +TargetClass= 0xff + +MessageContent="55534243123456780000000000000601000000000000000000000000000000" + +######################################################## +# ZTE AX226 WiMax +# +# may be supported by the Beceem driver + +DefaultVendor= 0x19d2 +DefaultProduct=0xbccd + +TargetVendor= 0x19d2 +TargetProduct= 0x0172 + +MessageContent="555342431234567824000000800006bc626563240000000000000000000000" + +NoDriverLoading=1 + + +######################################################## +# Huawei EC156 + +DefaultVendor= 0x12d1 +DefaultProduct=0x1505 + +TargetVendor= 0x12d1 +TargetProduct= 0x140b + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Longcheer SU9800 + +DefaultVendor= 0x1c9e +DefaultProduct=0x9800 + +TargetClass=0xff + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# SpeedUp SU-8000U + +DefaultVendor= 0x2020 +DefaultProduct=0xf00e + +TargetVendor= 0x2020 +TargetProduct= 0x1005 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Cisco AM10 "Valet Connector" +# +# Contributor: David S. + +DefaultVendor= 0x1307 +DefaultProduct=0x1169 + +TargetVendor= 0x13b1 +TargetProduct= 0x0031 + +CiscoMode=1 + + +######################################################## +# Alcatel OT X220L +# +# Contributor: Sylvain Gros-Desormeaux + +DefaultVendor= 0x1bbb +DefaultProduct=0xf052 + +TargetVendor= 0x1bbb +TargetProduct= 0x0052 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# Nokia CS-19 +# +# Contributor: ThatGuy + +DefaultVendor= 0x0421 +DefaultProduct=0x062c + +TargetVendor= 0x0421 +TargetProduct= 0x062d + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Huawei ET302 + +DefaultVendor= 0x12d1 +DefaultProduct=0x1d50 + +Configuration=2 + + +######################################################## +# 3GO 3GO11 HSUPA + +DefaultVendor= 0x1e89 +DefaultProduct=0xf000 + +TargetVendor= 0x1e89 +TargetProduct= 0x1a20 + +MessageContent="5553424312345678800000008000060619181a207000000000000000000000" + + +######################################################## +# Novatel Wireless MC545 HSPA + +DefaultVendor= 0x1410 +DefaultProduct=0x5059 + +TargetVendor= 0x1410 +TargetProduct= 0x7042 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# ZTE AC682 (a.k.a. SmartFren Connex) + +DefaultVendor= 0x19d2 +DefaultProduct=0xffde + +TargetVendor= 0x19d2 +TargetProduct= 0xffdd + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# ZTE MF820 4G LTE +# +# Contributor: Kenny Lam + +DefaultVendor= 0x19d2 +DefaultProduct=0x0166 + +TargetVendor= 0x19d2 +TargetProduct= 0x0167 + +MessageContent="55534243123456782400000080000685000000240000000000000000000000" + + +######################################################## +# Philips PicoPix 1020 Projector +# +# No known driver or application yet + +DefaultVendor= 0x1de1 +DefaultProduct=0x1101 + +TargetVendor= 0x21e7 +TargetProduct= 0x000e + +MessageContent="55534243123456780000000000000cff020000000000000000000000000000" + + +######################################################## +# AnyDATA APE-540H +# +# Contributor: Robert Gabriel + +DefaultVendor= 0x05c6 +DefaultProduct=0x6503 + +TargetVendor= 0x16d5 +TargetProduct= 0x6502 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# ZTE MF192 (Variant) +# +# Contributor: C!chy + +DefaultVendor= 0x19d2 +DefaultProduct=0x1517 + +TargetVendor= 0x19d2 +TargetProduct= 0x1519 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Qisda H21 Flying Beetle +# +# Contributor: Chi-Hang Long + +DefaultVendor= 0x1da5 +DefaultProduct=0xf000 + +TargetVendor= 0x1da5 +TargetProduct= 0x4512 + +QisdaMode=1 + + +######################################################## +# C-motech CDU-685a +# +# Contributor: Tom Cumming + +DefaultVendor= 0x16d8 +DefaultProduct=0x6804 + +TargetClass=0xff + +MessageContent="555342431234567824000000800008ff524445564348470000000000000000" + + +######################################################## +# StrongRising (China Telcom), Air FlexiNet + +DefaultVendor= 0x21f5 +DefaultProduct=0x1000 + +TargetVendor= 0x21f5 +TargetProduct= 0x2008 + +MessageContent="5553424312345678c000000080000671010000000000000000000000000000 + + +######################################################## +# BandRich BandLuxe C339 + +DefaultVendor= 0x1a8d +DefaultProduct=0x2000 + +TargetVendor= 0x1a8d +TargetProduct= 0x2006 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +######################################################## +# Celot CT-680 + +DefaultVendor= 0x05c6 +DefaultProduct=0x1000 + +TargetVendor= 0x211f +TargetProduct= 0x6802 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Huawei E353 (3.se) +# +# Contributor: Ulf Eklund + +DefaultVendor= 0x12d1 +DefaultProduct=0x1f01 + +TargetVendor= 0x12d1 +TargetProduct= 0x14db + +MessageContent="55534243123456780000000000000a11062000000000000100000000000000" + +# Driver is cdc_ether +NoDriverLoading=1 + + +######################################################## +# Haier CE682 (EVDO) +# +# Contributor: Ebedsat + +DefaultVendor= 0x201e +DefaultProduct=0x1023 + +TargetVendor= 0x201e +TargetProduct= 0x1022 + +MessageContent="55534243123456780000000000000600000000000000000000000000000000" +MessageContent2="5553424312345679c000000080000671030000000000000000000000000000" +NeedResponse=1 + + +####################################################### +# LG L-02C LTE +# +# Contributor: Yoshiaki Katsumata + +DefaultVendor= 0x1004 +DefaultProduct=0x61dd + +TargetVendor= 0x1004 +TargetProduct= 0x618f + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +####################################################### +# LG SD711 +# +# Contributor: Ryan Jenkins + +DefaultVendor= 0x1004 +DefaultProduct=0x61e7 + +TargetVendor= 0x1004 +TargetProduct= 0x61e6 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# LG L-08C (NTT docomo) +# +# Contributor: Shlomi Cohen + +DefaultVendor= 0x1004 +DefaultProduct=0x61eb + +TargetVendor= 0x1004 +TargetProduct= 0x61ea + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# I-O Data WMX2-U Wimax +# +# Contributor: Shlomi Cohen + +DefaultVendor= 0x04bb +DefaultProduct=0xbccd + +TargetVendor= 0x04bb +TargetProduct= 0x0949 + +MessageContent="55534243f0298d8124000000800006bc626563240000000000000000000000" + + +######################################################## +# Option GlobeTrotter GI1515 + +DefaultVendor= 0x0af0 +DefaultProduct=0xd001 + +TargetVendor= 0x0af0 +TargetProduct= 0xd157 + +MessageContent="55534243785634120100000080000601000000000000000000000000000000" + + +####################################################### +# LG L-07A +# +# Contributor: Shin Sterneck + +DefaultVendor= 0x1004 +DefaultProduct=0x614e + +TargetVendor= 0x1004 +TargetProduct= 0x6135 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# ZTE A371B +# +# Contributor: Wang Lei + +DefaultVendor= 0x19d2 +DefaultProduct=0x0169 + +TargetVendor= 0x19d2 +TargetProduct= 0x0170 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# ZTE MF652 +# +# Contributor: Björn Andreas Höfer + +DefaultVendor= 0x19d2 +DefaultProduct=0x1520 + +TargetVendor= 0x19d2 +TargetProduct= 0x0142 + +MessageContent="5553424312345679000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# ZTE MF652 (Variant) +# +# Contributor: Jackzy + +DefaultVendor= 0x19d2 +DefaultProduct=0x0146 + +TargetVendor= 0x19d2 +TargetProduct= 0x0143 + +MessageContent="5553424312345679000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Telenet 3G dongle (T&W WU160) +# +# Contributor: Ben Van Mechelen + +DefaultVendor= 0x2077 +DefaultProduct=0xf000 + +TargetVendor= 0x2077 +TargetProduct= 0x9000 + +MessageContent="5553424308902082000000000000061b000000020000000000000000000000" + + +######################################################## +# Nokia CS-21M-02 +# +# Contributor: Wojciech Wiercho.a, Tore Anderson + +DefaultVendor= 0x0421 +DefaultProduct=0x0637 + +TargetVendor= 0x0421 +TargetProduct= 0x0638 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Telewell TW-3G HSPA+ +# +# Contributor: Teemu Merikumpu + +DefaultVendor= 0x1c9e +DefaultProduct=0x98ff + +TargetVendor= 0x1c9e +TargetProduct= 0x9801 + +MessageContent="55534243123456780000000080000606f50402527000000000000000000000" + + +######################################################## +# ZTE MF637 +# +# Contributor: Johannes Hubertz + +DefaultVendor= 0x19d2 +DefaultProduct=0x0031 + +TargetVendor= 0x19d2 +TargetProduct= 0x0094 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +######################################################## +# Samsung GT-B1110 +# +# Contributor: Spelroth + +DefaultVendor= 0x04e8 +DefaultProduct=0x680c + +TargetVendor= 0x04e8 +TargetProduct= 0x6792 + +MessageContent="0902200001010080fa0904000002080650000705010200020007058102000200" + + +######################################################## +# ZTE MF192 (yet annother variant) +# +# Contributor: Paul Hedderly + +DefaultVendor= 0x19d2 +DefaultProduct=0x1514 + +TargetVendor= 0x19d2 +TargetProduct= 0x1515 + +MessageContent="5553424348c4758600000000000010ff000000000000000000000000000000" + + +######################################################## +# MediaTek MT6276M +# +# Contributor: Meng Zhang + +DefaultVendor= 0x0e8d +DefaultProduct=0x0002 + +TargetVendor= 0x0e8d +TargetProductList="00a1,00a2" + +MessageContent="555342431234567800000000000006f0010300000000000000000000000000" + + +######################################################## +# Tata Photon+ +# +# Contributor: Nirbheek Chauhan + +DefaultVendor= 0x22f4 +DefaultProduct=0x0021 + +TargetClass=0xff + +MessageContent="555342439f000000000000000000061b000000020000000000000000000000" + + +######################################################## +# Option Globetrotter (Variant) +# +# Contributor: Roman Samarev + +DefaultVendor= 0x0af0 +DefaultProduct= 0x8006 + +TargetVendor= 0x0af0 +TargetProduct= 0x9100 + +MessageContent="55534243785634120100000080000601000000000000000000000000000000" + + +####################################################### +# Option iCon 711 +# +# Contributor: Rene Falcon + +DefaultVendor= 0x0af0 +DefaultProduct=0x4007 + +TargetVendor= 0x0af0 +TargetProduct= 0x4005 + +SierraMode=1 + + +####################################################### +# Celot K-300 +# +# Contributor: Jan Vecek + +DefaultVendor= 0x05c6 +DefaultProduct=0x1000 + +TargetVendor= 0x211f +TargetProduct= 0x6801 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Hisense E910 EVDO Phone +# +# Contributor: Zang MingJie + +DefaultVendor= 0x109b +DefaultProduct=0xf009 + +TargetVendor= 0x109b +TargetProduct= 0x9114 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +############################################################################# +# Yota Router (Quanta 1QDLZZZ0ST2) +# +# Contributor: Ilya Voronin + +DefaultVendor= 0x0408 +DefaultProduct=0xf000 + +TargetVendor= 0x0408 +TargetProduct= 0xd009 + +MessageContent="5553424312345678000000000000061b004600000000000000000000000000" + + +############################################################################# +# K5005 Vodafone/Huawei +# +# Contributor: Thomas Schaefer + +DefaultVendor= 0x12d1 +DefaultProduct=0x14c3 + +TargetVendor= 0x12d1 +TargetProduct= 0x14c8 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + + +############################################################################# +# D-Link DWM-156 (Variant) +# +# Contributor: ZML + +DefaultVendor= 0x2001 +DefaultProduct=0xa80b + +TargetVendor= 0x2001 +TargetProduct= 0x7d00 + +MessageContent="555342431234567800000000000003f0010100000000000000000000000000" + + +######################################################## +# Huawei E173 (Moviestar) +# +# Contributor: Molipha + +DefaultVendor= 0x12d1 +DefaultProduct=0x1c24 + +TargetVendor= 0x12d1 +TargetProduct= 0x1c12 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Onda MSA 14.4 (TIM Brasil) +# +# Contributor: Rafael Pagliuca + +DefaultVendor= 0x1ee8 +DefaultProduct=0x0060 + +TargetVendor= 0x1ee8 +TargetProduct= 0x005f + +MessageContent="555342431234567800000000000008ff000000000000030000000000000000" + + +######################################################## +# Alcatel OT-X220D +# +# Contributor: Javier Llorente + +DefaultVendor= 0x1bbb +DefaultProduct=0xf017 + +TargetVendor= 0x1bbb +TargetProduct= 0x0017 + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# Alcatel OT-X080C +# +# Contributor: Hicham Haouari + +DefaultVendor= 0x1bbb +DefaultProduct=0x00ca + +TargetClass=0xff + +MessageContent="55534243123456788000000080000606f50402527000000000000000000000" + + +######################################################## +# TP-Link MA180 +# +# Contributor: complexgeek + +DefaultVendor= 0x2357 +DefaultProduct=0x0200 + +TargetVendor= 0x2357 +TargetProduct= 0x0201 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# ZTE MF821D +# +# Contributor: Thomas Schäfer + +DefaultVendor= 0x19d2 +DefaultProduct=0x0325 + +TargetVendor= 0x12d1 +TargetProduct= 0x0326 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# Dymo LabelManager PnP +# +# Contributor: Kjell M. Myksvoll + +DefaultVendor= 0x0922 +DefaultProduct=0x1001 + +TargetVendor= 0x0922 +TargetProduct= 0x1002 + +MessageEndpoint= 0x01 +ResponseEndpoint=0x01 + +MessageContent="1b5a01" +NoDriverLoading=1 + + +######################################################## +# Onda MDC655 HSDPA 900/2100 MHz 14.4 Mbps +# +# Contributor: lmctv + +DefaultVendor = 0x1ee8 +DefaultProduct =0x004a + +TargetVendor = 0x1ee8 +TargetProduct = 0x0049 + +MessageContent="555342431234567800000000000010ff000000000000000000000000000000" + + +######################################################## +# Vodafone K5006Z (MF821) +# +# Contributor: Thomas Schäfer + +DefaultVendor= 0x19d2 +DefaultProduct=0x1017 + +TargetVendor= 0x12d1 +TargetProduct= 0x1018 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Option GI0643 (aka XYFI) +# +# Contributor: Amish Chana + +DefaultVendor= 0x0af0 +DefaultProduct=0x8700 + +TargetClass=0xff + +MessageContent="55534243785634120100000080000601000000000000000000000000000000" +NoDriverLoading=1 + + +####################################################### +# WeTelecom WM-D300 +# +# Contributor: Viktor Remennik + +DefaultVendor= 0x22de +DefaultProduct=0x6803 + +TargetVendor= 0x22de +TargetProduct= 0x6801 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + + +####################################################### +# China TeleCom CBP7.0 +# +# Contributor: tricky + +DefaultVendor= 0x15eb +DefaultProduct=0x7153 + +TargetVendor= 0x15eb +TargetProduct= 0x7152 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Linktop LW272/LW273 (BSNL Teracom) +# +# Contributor: Jigish Gohil + +DefaultVendor= 0x230d +DefaultProduct=0x0101 + +TargetClass=0xff + +Configuration=2 + + +####################################################### +# Nokia CS-11 +# +# Contributor: Alessandro Martins + +DefaultVendor= 0x0421 +DefaultProduct=0x061d + +TargetVendor= 0x0421 +TargetProduct= 0x061e + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# ZTE MF190 (Variant) +# +# Contributor: Radu C + +DefaultVendor= 0x19d2 +DefaultProduct=0x0154 + +TargetVendor= 0x19d2 +TargetProduct= 0x0117 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +####################################################### +# Huawei E535 +# +# Contributor: Andres Septer + +DefaultVendor= 0x12d1 +DefaultProduct=0x14fe + +TargetVendor= 0x12d1 +TargetProduct= 0x1506 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +####################################################### +# ZTE MF190J +# +# Contributor: moma + +DefaultVendor= 0x19d2 +DefaultProduct=0x1542 + +TargetVendor= 0x19d2 +TargetProduct= 0x1544 + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + +NeedResponse=1 + + +####################################################### +# Huawei E171 + +DefaultVendor= 0x12d1 +DefaultProduct=0x155b + +TargetVendor= 0x12d1 +TargetProduct= 0x1506 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +####################################################### +# Vodafone / Huawei K3772 + +DefaultVendor= 0x12d1 +DefaultProduct=0x1526 + +TargetVendor= 0x12d1 +TargetProduct= 0x14cf + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +####################################################### +# Vodafone / Huawei K3773 +# +# Contributor: Allwyn Fernandes + +DefaultVendor= 0x12d1 +DefaultProduct=0x1f11 + +TargetVendor= 0x12d1 +TargetProduct= 0x14bc + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +####################################################### +# Huawei E173u-2, E177 +# +# Contributor: Rob Spanton + +DefaultVendor= 0x12d1 +DefaultProduct=0x14ba + +TargetVendor= 0x12d1 +TargetProduct= 0x14d2 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +####################################################### +# Option Beemo / Pantech P4200 LTE +# +# Contributor: Thomas Schäfer + +DefaultVendor= 0x106c +DefaultProduct=0x3b14 + +TargetVendor= 0x106c +TargetProduct= 0x3721 + +MessageContent="555342431234567824000000800008ff024445564348470000000000000000" + +# QMI device +NoDriverLoading=1 + + +####################################################### +# Huawei E355s-1 +# +# Contributor: Mihail Zenkov + +DefaultVendor= 0x12d1 +DefaultProduct=0x1f01 + +TargetVendor= 0x12d1 +TargetProduct= 0x14db + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +####################################################### +# Nokia CS-7M-01 +# +# Contributor: Krzysztof Luczak + +DefaultVendor= 0x0421 +DefaultProduct=0x0632 + +TargetVendor= 0x0421 +TargetProduct= 0x0632 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################### +# LG L-03D LTE/3G +# +# Contributor: Kentaro Kazuhama + +DefaultVendor= 0x1004 +DefaultProduct=0x6327 + +TargetVendor= 0x1004 +TargetProduct= 0x6326 + +MessageContent=555342431234567800000000000005f1010100000000000000000000000000 + +######################################################## +# Franklin Wireless U600 + +DefaultVendor= 0x1fac +DefaultProduct=0x0150 + +TargetVendor= 0x1fac +TargetProduct= 0x0151 + +MessageContent="555342431234567824000000800108df200000000000000000000000000000" + + +####################################################### +# Huawei E353 +# +# Contributor: koisoke + +DefaultVendor= 0x12d1 +DefaultProduct=0x151a + +TargetVendor= 0x12d1 +TargetProduct= 0x14ac + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +####################################################### +# Changhong CH690 + +DefaultVendor= 0x2077 +DefaultProduct=0x1000 + +TargetVendor= 0x2077 +TargetProduct= 0x7001 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Alcatel-Lucent T930S +# +# Contributor: areslee + +DefaultVendor= 0x04cc +DefaultProduct=0x225c + +Configuration=2 + + +####################################################### +# Axesstel MU130 +# +# Contributor: Jazb + +DefaultVendor= 0x1726 +DefaultProduct=0xf00e + +TargetVendor= 0x1726 +TargetProduct= 0xa000 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Explay Slim +# +# Contributor: vdsdmitry + +DefaultVendor= 0x1c9e +DefaultProduct=0x9e08 + +TargetVendor= 0x1c9e +TargetProduct= 0x9e18 + +SierraMode=1 +NoDriverLoading=1 + + +####################################################### +# Huawei GP02 (E587 Variant) +# +# Contributor: Genmei Mori + +DefaultVendor= 0x12d1 +DefaultProduct=0x1c1b + +TargetVendor= 0x12d1 +TargetProduct= 0x1506 + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" +NoDriverLoading=1 + + +####################################################### +# Huawei U2800 Phone +# +# Contributor: Peter Fedorow + +DefaultVendor= 0x12d1 +DefaultProduct=0x1805 + +TargetClass=0xff + +MessageContent="55534243123456780600000080000601000000000000000000000000000000" + + +################################################### +# KDDI (Huawei) HWD12 LTE +# +# Contributor: nhe + +DefaultVendor= 0x12d1 +DefaultProduct=0x1f03 + +TargetVendor= 0x12d1 +TargetProduct= 0x14db + +#MessageContent="55534243123456780000000000000011062000000100000000000000000000" +MessageContent="55534243123456780000000000000a11062000000000000100000000000000" +NoDriverLoading=1 + + +######################################################## +# D-Link DWM-156 (Variant) +# +# Contributor: Bjørn Mork + +DefaultVendor= 0x2001 +DefaultProduct=0xa706 + +TargetVendor= 0x2001 +TargetProduct= 0x7d01 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# D-Link DWM-156 (Variant) +# +# Contributor: Bjørn Mork + +DefaultVendor= 0x2001 +DefaultProduct=0xa707 + +TargetVendor= 0x2001 +TargetProduct= 0x7d02 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# D-Link DWM-156 (Variant) +# +# Contributor: Bjørn Mork + +DefaultVendor= 0x2001 +DefaultProduct=0xa708 + +TargetVendor= 0x2001 +TargetProduct= 0x7d03 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Onda TM201 14.4 (TIM Italy) +# +# Contributor: Cristian Astorino + +DefaultVendor= 0x1ee8 +DefaultProduct=0x0063 + +TargetVendor= 0x1ee8 +TargetProduct= 0x0064 + +MessageContent="555342431234567800000000000008FF000000000000030000000000000000" + + +####################################################### +# Onda WM301 +# +# Contributor: Nicolas Carrier + +DefaultVendor= 0x1ee8 +DefaultProduct=0x0068 + +TargetVendor= 0x1ee8 +TargetProduct= 0x0069 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Nokia CS-12 +# +# Contributor: John Zouck + +DefaultVendor= 0x0421 +DefaultProduct=0x0618 + +TargetVendor= 0x0421 +TargetProduct= 0x0619 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Axesstel Modems (w/ initial idProduct 0x0010) +# +# Contributor: LOM + +DefaultVendor= 0x05c6 +DefaultProduct=0x0010 + +TargetVendor= 0x05c6 +TargetProduct= 0x00a0 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Onda MT8205 LTE +# +# Contributor: Vincenzo Ingrosso + +DefaultVendor= 0x19d2 +DefaultProduct=0x0266 + +TargetVendor= 0x19d2 +TargetProduct= 0x0265 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Pantech UML290 +# +# Contributor: Davis Ford + +DefaultVendor= 0x106c +DefaultProduct=0x3b11 + +TargetVendor= 0x106c +TargetProduct= 0x3718 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Novatel MC996D +# +# Contributor: David Caste + +DefaultVendor= 0x1410 +DefaultProduct=0x5023 + +TargetVendor= 0x1410 +TargetProduct= 0x7030 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# D-Link DWR-510 +# +# Contributor: Nicolas Carrier + +DefaultVendor= 0x2001 +DefaultProduct=0xa805 + +TargetVendor= 0x2001 +TargetProduct= 0x7e12 + +MessageContent="5553424308407086000000000000061b000000020000000000000000000000" + + +####################################################### +# Mediatek MT6229 +# +# Contributor: Daniel Dongo + +DefaultVendor= 0x2020 +DefaultProduct=0x0002 + +TargetVendor= 0x2020 +TargetProduct= 0x2000 + +MessageContent="555342430820298900000000000003f0010100000000000000000000000000" + + +####################################################### +# ZTE MF196 +# +# Contributor: David Caste + +DefaultVendor= 0x19d2 +DefaultProduct=0x1528 + +TargetVendor= 0x19d2 +TargetProduct= 0x1527 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +####################################################### +# ZTE MF656A, MF668A, MF669 +# +# Contributor: David Caste + +DefaultVendor= 0x19d2 +DefaultProduct=0x0150 + +TargetVendor= 0x19d2 +TargetProduct= 0x0124 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +####################################################### +# ZTE MF680 +# +# Contributor: David Caste + +DefaultVendor= 0x19d2 +DefaultProduct=0x1227 + +TargetVendor= 0x19d2 +TargetProduct= 0x1252 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" +NeedResponse=1 + + +####################################################### +# WeTelecom WM-D200 +# +# Contributor: Kirill Roskoliy + +DefaultVendor= 0x22de +DefaultProduct=0x6801 + +TargetClass=0xff + +MessageContent="5553424312345678000000000000061e000000000000000000000000000000" +MessageContent2="5553424312345679000000000000061b000000020000000000000000000000" + + +####################################################### +# Quanta 1K3 LTE +# +# Contributor: Andrey Tikhomirov + +DefaultVendor= 0x0408 +DefaultProduct=0xea25 + +TargetVendor= 0x0408 +TargetProduct= 0xea26 + +QuantaMode=1 + + +####################################################### +# TP-Link MA260 +# +# Contributor: Bjørn Mork + +DefaultVendor= 0x2357 +DefaultProduct=0xf000 + +TargetVendor= 0x2357 +TargetProduct= 0x9000 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### +# Teracom LW272 +# +# Contributor: Dheeraj Khanna + +DefaultVendor= 0x230d +DefaultProduct=0x0103 + +Configuration=2 + + +####################################################### +# Huawei E3276s-151 and E3251 +# +# Contributor: Nicholas Carrier + +DefaultVendor= 0x12d1 +DefaultProduct=0x156a + +TargetVendor= 0x12d1 +TargetProductList="156b,156c" + +MessageContent="55534243123456780000000000000011062000000100000000000000000000" + + +######################################################## +# Huawei K4305 +# +# Contributor: Dario + +DefaultVendor= 0x12d1 +DefaultProduct=0x1f15 + +TargetVendor= 0x12d1 +TargetProduct= 0x1400 + +MessageContent="55534243123456780000000000000011062000000000000100000000000000" + + +######################################################## +# BlackBerry Q10 and Z10 +# +# Contributor: Daniel Mende + +DefaultVendor= 0x0fca +DefaultProduct=0x8020 + +TargetVendor= 0x0fca +TargetProduct= 0x8012 + +BlackberryMode=1 + + +######################################################## +# Pantech LTE Modem +# +# Contributor: Adam Goode + +DefaultVendor= 0x10a9 +DefaultProduct=0x6080 + +TargetVendor= 0x10a9 +TargetProduct= 0x6085 + +PantechMode=1 + + +####################################################### +# Quanta MobileGenie 4G lte +# +# Contributor: Richard Wood + +DefaultVendor= 0x0408 +DefaultProduct=0xea43 + +TargetVendor= 0x0408 +TargetProduct= 0xea47 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +######################################################## +# AVM Fritz!Wlan USB Stick N v2 +# +# Contributor: merla + +DefaultVendor= 0x057c +DefaultProduct=0x62ff + +TargetVendor= 0x057c +TargetProduct= 0x8501 + +MessageContent="5553424312345678000000000000061b000000ff0000000000000000000000" + + +######################################################## +# Alcatel-sbell ASB TL131 TD-LTE +# +# Contributor: scateu + +DefaultVendor= 0x05c6 +DefaultProduct=0x9024 + +TargetVendor= 0x05c6 +TargetProduct= 0x9025 + +MessageContent="5553424312345678000000000000061b000000020000000000000000000000" + + +####################################################### diff --git a/rhbz948451-fix-manual-pages.patch b/rhbz948451-fix-manual-pages.patch deleted file mode 100644 index 0ebae61..0000000 --- a/rhbz948451-fix-manual-pages.patch +++ /dev/null @@ -1,99 +0,0 @@ -diff -up usb-modeswitch-1.2.7/usb_modeswitch.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.1 ---- usb-modeswitch-1.2.7/usb_modeswitch.1.fix-manual-pages 2013-08-20 12:07:24.292188457 +0200 -+++ usb-modeswitch-1.2.7/usb_modeswitch.1 2013-08-20 12:30:41.606556395 +0200 -@@ -48,10 +48,12 @@ Product ID to look for (mandatory) - Target vendor ID. When given will be searched for and detected initially - for information purposes. If success checking (option \-s) is active, - providing target IDs (vendor/product) or target class is recommended -+.IP "\fB-j\fP \fB\-\-find-mbim\fP " 10 -+Return configuration number with MBIM interface and exit. - .IP "\fB-P\fP \fB\-\-target-product NUM\fP " 10 - Target product ID --.IP "\fB-b\fP \fB\-\-busnum NUM\fP " 10 --.IP "\fB-g\fP \fB\-\-devnum NUM\fP " 10 -+.IP "\fB-b\fP \fB\-\-bus-num NUM\fP " 10 -+.IP "\fB-g\fP \fB\-\-device-num NUM\fP " 10 - If bus and device number are provided, the handling of a specific device on - a specific USB port is guaranteed, in contrast to using only the USB ID. This - is important if there are multiple similar devices on a system -@@ -110,7 +112,7 @@ Send a special control message used by P - .IP "\fB-Z\fP \fB\-\-blackberry-mode\fP " 10 - Send a special control message used by Blackberry devices - .IP "\fB-O\fP \fB\-\-sony-mode\fP " 10 --Apply a special sequence used by Sony Ericsson devices. Implies option \--success -+Apply a special sequence used by Sony Ericsson devices. Implies option \--check-success - .IP "\fB-L\fP \fB\-\-cisco-mode\fP " 10 - Send a sequence of bulk messages used by Cisco devices - .IP "\fB-R\fP \fB\-\-reset-usb\fP " 10 -@@ -119,7 +121,7 @@ method or stand alone. It is always done - interactions. - Few devices need it to complete the switching; apart from that it may be - useful during testing --.IP "\fB-c\fP \fB\-\-config FILENAME\fP " 10 -+.IP "\fB-c\fP \fB\-\-config-file FILENAME\fP " 10 - Use a specific config file. If any ID or switching options are given as - command line parameters, this option is ignored. - In that case all mandatory parameters have to be provided on -@@ -138,7 +140,7 @@ Print all settings before running and sh - Changes the behaviour of the program slightly. A success message including the - effective target device ID is put out and a syslog notice is issued. Mainly for - integration with a wrapper script --.IP "\fB-s\fP \fB\-\-success NUM\fP " 10 -+.IP "\fB-s\fP \fB\-\-check-success NUM\fP " 10 - After switching, keep checking for the result up to max. NUM seconds. If target IDs - or target class were provided, their appearance indicates certain success. Otherwise - the disconnection of the original device is rated as likely proof -diff -up usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.c ---- usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages 2013-08-20 12:12:10.752953754 +0200 -+++ usb-modeswitch-1.2.7/usb_modeswitch.c 2013-08-20 12:37:27.415242925 +0200 -@@ -1968,11 +1968,12 @@ void printHelp() - " -V, --target-vendor NUM target mode vendor ID (optional)\n" - " -P, --target-product NUM target mode product ID (optional)\n" - " -C, --target-class NUM target mode device class (optional)\n" -- " -b, --busnum NUM system bus number of device (for hard ID)\n" -- " -g, --devnum NUM system device number (for hard ID)\n" -+ " -b, --bus-num NUM system bus number of device (for hard ID)\n" -+ " -g, --device-num NUM system device number (for hard ID)\n" - " -m, --message-endpoint NUM direct the message transfer there (optional)\n" - " -M, --message-content message to send (hex number as string)\n" -- " -2 , -3 additional messages to send (-n recommended)\n" -+ " -2, --message-content2 additional messages to send (-n recommended)\n" -+ " -3, --message-content3 additional messages to send (-n recommended)\n" - " -n, --need-response read response to the message transfer (CSW)\n" - " -r, --response-endpoint NUM read response from there (optional)\n" - " -d, --detach-only detach the active driver, no further action\n" -@@ -1989,10 +1990,11 @@ void printHelp() - " -Z, --blackberry-mode apply a special procedure\n" - " -F, --pantech-mode apply a special procedure\n" - " -R, --reset-usb reset the device after all other actions\n" -+ " -w, --release-delay delay releasing the interface\n" - " -Q, --quiet don't show progress or error messages\n" - " -W, --verbose print all settings and debug output\n" - " -D, --sysmode specific result and syslog message\n" -- " -s, --success switching result check with timeout\n" -+ " -s, --check-success switching result check with timeout\n" - " -I, --no-inquire do not get SCSI attributes (default on)\n\n" - " -c, --config-file load long configuration from file\n\n" - " -t, --stdinput read long configuration from stdin\n\n" -diff -up usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 ---- usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages 2013-08-20 11:59:15.467713141 +0200 -+++ usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 2013-08-20 12:57:51.913947292 +0200 -@@ -0,0 +1,18 @@ -+.TH "USB_MODESWITCH_DISPATCHER" "1" -+.SH "NAME" -+usb_modeswitch_dispatcher - dispatcher not intended for direct invocation. -+.SH "SYNOPSIS" -+.PP -+\fBusb_modeswitch_dispatcher\fR -+.SH "DESCRIPTION" -+.PP -+usb_modeswitch_dispatcher is doing additional device checking and -+using the usb_modeswitch binary to switch with the selected device config file. -+If no drivers are taking care of the device after the mode switch, the dispatcher -+will try to load and bind the "option" serial driver, in order to make the device -+usable. -+.PP -+This program is called by udev and is not supposed to be called directly -+by the user. -+.SH SEE ALSO -+.BR usb_modeswitch(1). diff --git a/sources b/sources index 793b0dd..5d4f2f1 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -18d889d72195534ae9133a8181cad42b usb-modeswitch-1.2.7.tar.bz2 -dd14f254f6c3642ce16fd7c2f43ee112 device_reference.txt +e48d4419d0574d342bb183f7465556d0 usb-modeswitch-2.0.1.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 219461a..19567d9 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,18 +1,21 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 1.2.7 -Release: 3%{?dist} +Version: 2.0.1 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System License: GPLv2+ URL: http://www.draisberghof.de/usb_modeswitch/ + Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt -Patch0: rhbz948451-fix-manual-pages.patch + +BuildRequires: libusbx-devel +BuildRequires: jimtcl-devel +BuildRequires: systemd-devel Requires: usb_modeswitch-data >= 20121109 -BuildRequires: libusb-devel %description USB Modeswitch brings up your datacard into operational mode. When plugged @@ -30,8 +33,8 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %prep %setup -q -n %{source_name}-%{version} + cp -f %{SOURCE1} device_reference.txt -%patch0 -p1 -b .fix-manual-pages # convert device_reference.txt encoding to UTF-8 iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \ @@ -40,11 +43,10 @@ chmod 644 device_reference.txt && \ mv device_reference.txt.new device_reference.txt %build -CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static +CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/udev mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 @@ -58,9 +60,7 @@ gzip -9c usb_modeswitch_dispatcher.1 > usb_modeswitch_dispatcher.1.gz && install install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modeswitch - %files -%defattr(-,root,root,-) %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz @@ -71,6 +71,12 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Mon Jan 6 2014 Peter Robinson 2.0.1-1 +- Update to 2.0.1 and build against libusbx (RHBZ 994974) +- Use distro jimtcl (RHBZ 967314) +- Fix build on aarch64 +- Cleanup and modernise spec + * Wed Aug 28 2013 Thomas Haller 1.2.7-3 - Add manual page for usb_modeswitch_dispatcher and fix errors in manual page of usb_modeswitch (rhbz#948451, rhbz#884203). @@ -128,68 +134,3 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes * Thu Dec 30 2010 Dan Williams 1.1.6-1 - New upstream version - -* Tue Aug 24 2010 Huzaifa Sidhpurwala 1.1.4-1 -- New upstream version - -* Tue Jun 22 2010 Huzaifa Sidhpurwala 1.1.3-1 -- New upstream - -* Fri Apr 23 2010 Huzaifa Sidhpurwala - 1.1.2-3 -- Fix typo in binary location - -* Fri Apr 23 2010 Huzaifa Sidhpurwala - 1.1.2-2 -- Move usb_modeswitch binary back to /usr/sbin -- Package /etc/usb_modeswitch.setup for manual mode - -* Tue Apr 20 2010 Huzaifa Sidhpurwala - 1.1.2-1 -- New upstream -- Split data and main package - -* Mon Mar 8 2010 Huzaifa Sidhpurwala - 1.1.0-6 -- Version bump for F-12 build - -* Sat Mar 6 2010 Huzaifa Sidhpurwala - 1.1.0-5 -- Fix regression in rhbz #571001 -- Version bump - -* Thu Mar 4 2010 Huzaifa Sidhpurwala 1.1.0-3 -- Patch usb_modeswitch to use the binary from /usr/bin/ -- usb_modeswitch-data needs tcl - -* Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-2 -- Reload udev when new rules are installed - -* Tue Mar 2 2010 Huzaifa Sidhpurwala 1.1.0-1 -- New upstream 1.1.0 release -- Split package into binary and data part - -* Thu Sep 17 2009 Peter Robinson 1.0.5-1 -- new upstream 1.0.5 release - -* Sun Aug 02 2009 Robert M. Albrecht 1.0.2-1 -- new upstream release - -* Sun Jul 26 2009 Fedora Release Engineering - 0.9.6-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Wed Feb 25 2009 Fedora Release Engineering - 0.9.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Sun Jan 11 2009 Robert M. Albrecht 0.9.6-1 -* new upstream release - -* Sat Dec 13 2008 Robert M. Albrecht 0.9.5-1 -* new upstream release - -* Sun Jun 22 2008 Robert M. Albrecht 0.9.4-2 -- Fixed some rpmlint errors -- Added german translation - -* Sun Jun 22 2008 Robert M. Albrecht 0.9.4-1 -- Update to 0.9.4 -- Honor RPM_OPT_FLAGS - -* Mon May 26 2008 Robert M. Albrecht 0.9.4-0.1.beta2 -- First package Release - From fe3bcefafbec65fb87ca596e5ff3aa55afa2c483 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 28 Jan 2014 16:51:23 -0600 Subject: [PATCH 18/73] Resurrect manpage patch --- usb_modeswitch.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 19567d9..90b06c6 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -12,6 +12,8 @@ URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt +Patch0: rhbz948451-fix-manual-pages.patch + BuildRequires: libusbx-devel BuildRequires: jimtcl-devel BuildRequires: systemd-devel @@ -34,6 +36,8 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %prep %setup -q -n %{source_name}-%{version} +%patch0 -p1 -b .manpage + cp -f %{SOURCE1} device_reference.txt # convert device_reference.txt encoding to UTF-8 @@ -71,6 +75,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Tue Jan 28 2014 Dan Williams - 2.0.1-2 +- Resurrect manpage patch + * Mon Jan 6 2014 Peter Robinson 2.0.1-1 - Update to 2.0.1 and build against libusbx (RHBZ 994974) - Use distro jimtcl (RHBZ 967314) From 93378f42c67f8bb7fc36ddf0e71b0bdb23cec945 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Wed, 16 Apr 2014 15:12:03 +0100 Subject: [PATCH 19/73] Update to 2.1.1 --- sources | 2 +- usb_modeswitch.spec | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 5d4f2f1..e6c0526 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e48d4419d0574d342bb183f7465556d0 usb-modeswitch-2.0.1.tar.bz2 +1f0dc900df88254bd1102444cb73efbc usb-modeswitch-2.1.1.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 90b06c6..db2d9e8 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.0.1 -Release: 2%{?dist} +Version: 2.1.1 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -36,7 +36,7 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %prep %setup -q -n %{source_name}-%{version} -%patch0 -p1 -b .manpage +#%patch0 -p1 -b .manpage cp -f %{SOURCE1} device_reference.txt @@ -75,6 +75,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Wed Apr 16 2014 Peter Robinson 2.1.1-1 +- Update to 2.1.1 + * Tue Jan 28 2014 Dan Williams - 2.0.1-2 - Resurrect manpage patch From 4c009eaaec38f10825642fec358d0a53cfa5043c Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Wed, 16 Apr 2014 15:19:05 +0100 Subject: [PATCH 20/73] add the patch, likely needs to be rebased --- rhbz948451-fix-manual-pages.patch | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 rhbz948451-fix-manual-pages.patch diff --git a/rhbz948451-fix-manual-pages.patch b/rhbz948451-fix-manual-pages.patch new file mode 100644 index 0000000..62eb10c --- /dev/null +++ b/rhbz948451-fix-manual-pages.patch @@ -0,0 +1,48 @@ +diff -up usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.c +--- usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages 2013-08-20 12:12:10.752953754 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch.c 2013-08-20 12:37:27.415242925 +0200 +@@ -1968,7 +1968,8 @@ void printHelp() + " -g, --device-num NUM system device number (for hard ID)\n" + " -m, --message-endpoint NUM direct the message transfer there (optional)\n" + " -M, --message-content message to send (hex number as string)\n" +- " -2 , -3 additional messages to send (-n recommended)\n" ++ " -2, --message-content2 additional messages to send (-n recommended)\n" ++ " -3, --message-content3 additional messages to send (-n recommended)\n" + " -n, --need-response read response to the message transfer (CSW)\n" + " -r, --response-endpoint NUM read response from there (optional)\n" + " -d, --detach-only detach the active driver, no further action\n" +@@ -1989,10 +1990,11 @@ void printHelp() + " -B, --qisda-mode apply a special procedure\n" + " -E, --quanta-mode apply a special procedure\n" + " -R, --reset-usb reset the device after all other actions\n" ++ " -w, --release-delay delay releasing the interface\n" + " -Q, --quiet don't show progress or error messages\n" + " -W, --verbose print all settings and debug output\n" + " -D, --sysmode specific result and syslog message\n" +- " -s, --success switching result check with timeout\n" ++ " -s, --check-success switching result check with timeout\n" + " -I, --no-inquire do not get SCSI attributes (default on)\n\n" + " -c, --config-file load long configuration from file\n\n" + " -t, --stdinput read long configuration from stdin\n\n" +diff -up usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 +--- usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages 2013-08-20 11:59:15.467713141 +0200 ++++ usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 2013-08-20 12:57:51.913947292 +0200 +@@ -0,0 +1,18 @@ ++.TH "USB_MODESWITCH_DISPATCHER" "1" ++.SH "NAME" ++usb_modeswitch_dispatcher - dispatcher not intended for direct invocation. ++.SH "SYNOPSIS" ++.PP ++\fBusb_modeswitch_dispatcher\fR ++.SH "DESCRIPTION" ++.PP ++usb_modeswitch_dispatcher is doing additional device checking and ++using the usb_modeswitch binary to switch with the selected device config file. ++If no drivers are taking care of the device after the mode switch, the dispatcher ++will try to load and bind the "option" serial driver, in order to make the device ++usable. ++.PP ++This program is called by udev and is not supposed to be called directly ++by the user. ++.SH SEE ALSO ++.BR usb_modeswitch(1). From 084e42c86aea563e9f4fe63193406d5f71452e28 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 22:03:14 -0500 Subject: [PATCH 21/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index db2d9e8..3306f62 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -75,6 +75,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Sun Jun 08 2014 Fedora Release Engineering - 2.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Wed Apr 16 2014 Peter Robinson 2.1.1-1 - Update to 2.1.1 From 7483e64331044816015d3dec7a6ea3ca47290975 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 18 Aug 2014 07:13:35 +0000 Subject: [PATCH 22/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 3306f62..ac77a13 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -75,6 +75,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Mon Aug 18 2014 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Sun Jun 08 2014 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From cfc953b88ff7893bcff6c0e99312a22598f20d0e Mon Sep 17 00:00:00 2001 From: "Robert M. Albrecht" Date: Tue, 26 Aug 2014 21:10:24 +0200 Subject: [PATCH 23/73] New upstream release - Fixed a typo in the description --- sources | 2 +- usb_modeswitch.spec | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sources b/sources index e6c0526..c79f650 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1f0dc900df88254bd1102444cb73efbc usb-modeswitch-2.1.1.tar.bz2 +f323fe700edd6ea404c40934ddf32b22 usb-modeswitch-2.2.0.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index ac77a13..b7a49e7 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.1.1 -Release: 3%{?dist} +Version: 2.2.0 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -22,7 +22,7 @@ Requires: usb_modeswitch-data >= 20121109 %description USB Modeswitch brings up your datacard into operational mode. When plugged in they identify themselves as cdrom and present some non-Linux compatible -installation files. This tool deactivates this cdrom-devices and enables +installation files. This tool deactivates this cdrom-device and enables the real communication device. It supports most devices built and sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel. @@ -75,6 +75,10 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Tue Aug 26 2014 Robert M. Albrecht - 2.2.0-1 +- New upstream release +- Fixed a typo in the description + * Mon Aug 18 2014 Fedora Release Engineering - 2.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild From 0b0c2da0cd5794b22d6e0c0d02011ec553d2dccb Mon Sep 17 00:00:00 2001 From: Till Maas Date: Mon, 24 Nov 2014 20:51:41 +0100 Subject: [PATCH 24/73] Update device_reference.txt --- device_reference-utf8.patch | 74 ++++++++++++++ device_reference.txt | 187 +----------------------------------- usb_modeswitch.spec | 13 +-- 3 files changed, 86 insertions(+), 188 deletions(-) create mode 100644 device_reference-utf8.patch diff --git a/device_reference-utf8.patch b/device_reference-utf8.patch new file mode 100644 index 0000000..e6991a2 --- /dev/null +++ b/device_reference-utf8.patch @@ -0,0 +1,74 @@ +--- device_reference.txt 2014-05-29 22:18:46.000000000 +0200 ++++ device_reference_utf8.txt 2014-11-24 20:51:17.647221466 +0100 +@@ -60,7 +60,7 @@ + ######################################################## + # Option GlobeTrotter GT MAX 3.6 (aka "T-Mobile Web'n'walk Card Compact II") + # +-# Contributor: Bernd Holzmüller ++# Contributor: Bernd Holzmüller + + DefaultVendor= 0x05c6 + DefaultProduct= 0x1000 +@@ -279,7 +279,7 @@ + # + # Probably works with DetachStorageOnly too + # +-# Contributor: Flávio Moringa and others ++# Contributor: Flávio Moringa and others + + DefaultVendor= 0x19d2 + DefaultProduct= 0x2000 +@@ -777,7 +777,7 @@ + # + # Recommended init command: ATE0V1&D2&C1S0=0 + # +-# Contributor: Jérôme Oufella ++# Contributor: Jérôme Oufella + + DefaultVendor= 0x1004 + DefaultProduct= 0x1000 +@@ -1336,7 +1336,7 @@ + ######################################################## + # LG HDM-2100 (EVDO Rev.A USB modem) + # +-# Contributor: Jérôme Oufella ++# Contributor: Jérôme Oufella + + DefaultVendor= 0x1004 + DefaultProduct=0x607f +@@ -1641,7 +1641,7 @@ + ######################################################## + # Huawei U8110 / U8300 / Joy, Vodafone 845 (Android smartphone) + # +-# Contributor: David Erosa García ++# Contributor: David Erosa García + + DefaultVendor= 0x12d1 + DefaultProduct=0x1031 +@@ -1658,7 +1658,7 @@ + ######################################################## + # Nokia CS-10 + # +-# Contributor: WacÅ‚aw Sierek ++# Contributor: Wacław Sierek + + DefaultVendor= 0x0421 + DefaultProduct=0x060c +@@ -1700,7 +1700,7 @@ + ####################################################### + # Samsung GT-B3730 + # +-# Contributor: Per Øyvind Karlsen ++# Contributor: Per Øyvind Karlsen + + DefaultVendor= 0x04e8 + DefaultProduct=0x689a +@@ -1771,7 +1771,7 @@ + ####################################################### + # Huawei EC168C (from Zantel) + # +-# Contributor: Ã…smund Hjulstad ++# Contributor: Åsmund Hjulstad + + DefaultVendor= 0x12d1 + DefaultProduct=0x1446 diff --git a/device_reference.txt b/device_reference.txt index 16c638c..d34ec3e 100644 --- a/device_reference.txt +++ b/device_reference.txt @@ -1,7 +1,7 @@ # -# Device and Configuration Reference (UTF-8 encoding used) +# Device Reference (UTF-8 encoding used) # -# Last modified: 2013-11-13 +# Last modified: 2014-05-29 # # Collection of configurations for usb_modeswitch, a mode switching # tool for controlling flip flop (multiple mode) USB devices @@ -21,191 +21,14 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -# For custom settings: -# Numbers can be decimal or hexadecimal, MessageStrings MUST be -# hexadecimal without prepended "0x". Digits 9-16 in the known -# MessageStrings are arbitrary; I set them to "12345678" - -# What it all means (short command line flags appended): -# -# -# * DefaultVendor -v -# * DefaultProduct -p -# -# This is the ID the USB device shows after having been plugged in. -# The program needs this, either on the command line or in the config -# file; if not found -> no action. -# -# -# * TargetVendor -V -# * TargetProduct -P -# -# These are the IDs of the USB device after successful mode switching. -# They are optional, but I recommend to provide them for better analysis. -# You definitely need them if you enable CheckSuccess (see below) -# -# -# * TargetProductList (file only) -# -# Like TargetProduct, but more than one possibility. Only used in automated -# config files (in /etc/usb_modeswitch.d). -# -# -# * TargetClass -C -# -# Some weird devices don't change IDs. They only switch the device class. -# If the device has the target class -> no action (and vice versa) -# -# -# * MessageEndpoint -m -# -# A kind of address inside the interface to which the "message" -# (the sequence that does the actual switching) is directed. -# Obsolete since version 0.9.7, only useful for testing -# -# -# * MessageContent -M -# -# A hex string containing the "message" sequence; it will be -# sent as a USB bulk transfer -# -# -# * MessageContent2, ...3 -2/-3 -# -# Additional "messages". Use with "NeedResponse"! -# -# -# * ReleaseDelay -w -# -# Waiting time after message transfers. Helps with some sensitive devices -# that don't want any traffic after the mode switch initialisation -# -# -# * ResponseEndpoint -r -# * NeedResponse <0/1> -n -# -# Some devices were reported to require receiving the response of the -# bulk transfer to do the switching properly. Usually not needed. -# Starting from version 1.0.0 the ResponseEndpoint is autodetected -# if not given -# -# -# * DetachStorageOnly <0/1> -d -# -# Some early devices just needed to be detached from the usb-storage -# driver to initiate the mode switching. Now paractically obsolete for -# switching, but still comes handy sometimes -# -# -# * HuaweiMode <0/1> -H -# -# Some early Huawei devices can be switched by a special control -# message. Don't use with recent devices -# -# -# * SonyMode <0/1> -O -# -# Some Sony-Ericsson devices can be switched by a special control -# message. May take a long time (20+ seconds). -# -# -# * SierraMode <0/1> -S -# * KobilMode <0/1> -T -# * GCTMode <0/1> -G -# * SequansMode <0/1> -N -# * MobileActionMode <0/1> -A -# * QisdaMode <0/1> -B -# * QuantaMode <0/1> -E -# * PantechMode <0/1> -F -# * BlackberryMode <0/1> -Z -# * CiscoMode <0/1> -L -# -# -# Flags to support devices that need special control messages. -# The names are referring to the respective manufacturers. -# -# -# * ResetUSB <0/1> -R -# -# Few devices or systems need a rougher treatment. If the switching seems -# to do something but your system does not reflect it, try this somewhat -# brutal method to do a reset after switching. -# Mind that if your device switched OK before, this may set it back to -# storage mode ... -# -# -# * Interface -i -# * Configuration -u -# * AltSetting -a -# -# More USB parameter to help with tricky devices and for doing lots -# of cruel experiments ... -# -## Note: -## AltSetting/Configuration changes and ResetUSB are executed after all -## other steps and can be combined or used on their own (e.g. a reset -## might have the same effect as a manual replug) -# -# -# * InquireDevice <0|1> -I (disables inquiry) -# -# The standard since 1.0.0 is to do a SCSI inquiry on the default device -# before other actions. This might be a future way to identify a device -# without ambiguities. If it causes trouble with your device, just disable. -# -# -# * CheckSuccess -s -# -# Check continuously if the switch succeeded for max seconds. -# First, an interface access test: most devices vanish after -# switching and can't be accessed anymore. -# Second, a recount of target devices: one more than at the initial -# count, at the same bus with a higher device number -> device -# switched fine. -# It's safe to give a higher value than needed; checking stops as -# soon as the target device is found -# -# -# * NoDriverLoading <0|1> (no command line parameter) -# -# The binary tells the wrapper script NOT to check for and initiate -# binding of the serial driver after switching. -# Mostly useful for non-modem devices. -# -# -# * WaitBefore (no command line parameter) -# -# Waiting time before taking any action. Helps with some sensitive setups. -# -# -# * NoMBIMCheck <0|1> (no command line parameter) -# -# Disable the check for new MBIM standard devices, which is always done -# by default. -# -# -# -# -> All other entries in config files are just ignored <- - -# Additional command line flags: -# -# Verbose output -W -# No output at all -q -# Use config file -c -# Use stdin for long config -t -# Give long config as string -f -# Give bus number for ID'ing -b -# Give dev number for ID'ing -g - - -# For filling in all this information for an unknown device, -# see instructions and links on the homepage: -# http://www.draisberghof.de/usb_modeswitch +# For a parameter reference see file REFERENCE in the data package # # If you find working codes and configurations, please contribute # them! + + ####################################################### # Option GlobeSurfer Icon (aka "Vodafone EasyBox") # diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index b7a49e7..01465fd 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -13,6 +13,8 @@ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt Patch0: rhbz948451-fix-manual-pages.patch +# Submitted upstream (2014-11-24) +Patch1: device_reference-utf8.patch BuildRequires: libusbx-devel BuildRequires: jimtcl-devel @@ -39,12 +41,8 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. #%patch0 -p1 -b .manpage cp -f %{SOURCE1} device_reference.txt +%patch1 -p0 -b .utf8 -# convert device_reference.txt encoding to UTF-8 -iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \ -touch -r device_reference.txt device_reference.txt.new && \ -chmod 644 device_reference.txt && \ -mv device_reference.txt.new device_reference.txt %build CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} @@ -75,6 +73,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Mon Nov 24 2014 Till Maas - 2.2.0-2 +- Update device_reference.txt, make it proper UTF-8 + * Tue Aug 26 2014 Robert M. Albrecht - 2.2.0-1 - New upstream release - Fixed a typo in the description From ae5dc33d566965310789f5c8fc46d0619548fdc0 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sun, 22 Feb 2015 16:20:20 +0000 Subject: [PATCH 25/73] 2.2.1 --- sources | 2 +- usb_modeswitch.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index c79f650..22c752b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f323fe700edd6ea404c40934ddf32b22 usb-modeswitch-2.2.0.tar.bz2 +46cd7fa937655ab2df616c1d5dfb121e usb-modeswitch-2.2.1.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 01465fd..e687ca7 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.2.0 -Release: 2%{?dist} +Version: 2.2.1 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -73,6 +73,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Sun Feb 22 2015 Peter Robinson 2.2.1-1 +- New 2.2.1 release + * Mon Nov 24 2014 Till Maas - 2.2.0-2 - Update device_reference.txt, make it proper UTF-8 From 1574df51202f8493f41c57b6518dfc578c07b905 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 19 Jun 2015 01:41:15 +0000 Subject: [PATCH 26/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index e687ca7..c7ac712 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -73,6 +73,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Fri Jun 19 2015 Fedora Release Engineering - 2.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Sun Feb 22 2015 Peter Robinson 2.2.1-1 - New 2.2.1 release From ff9eddd797d913975f1a7b4956d009ab0b0adda1 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 18 Aug 2015 15:32:20 +0200 Subject: [PATCH 27/73] New 2.2.5 release --- sources | 2 +- usb_modeswitch.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 22c752b..2aa7836 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -46cd7fa937655ab2df616c1d5dfb121e usb-modeswitch-2.2.1.tar.bz2 +ef86a19f0b3c4f64896d78a2ffb748e9 usb-modeswitch-2.2.5.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index c7ac712..8ef26bf 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.2.1 -Release: 2%{?dist} +Version: 2.2.5 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -73,6 +73,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Tue Aug 18 2015 Lubomir Rintel - 2.2.5-1 +- New 2.2.5 release + * Fri Jun 19 2015 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 878865efb96ec24407a8099ec7a6c6cf0113ce08 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 5 Feb 2016 02:26:53 +0000 Subject: [PATCH 28/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 8ef26bf..7b25322 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.2.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -73,6 +73,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Fri Feb 05 2016 Fedora Release Engineering - 2.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Tue Aug 18 2015 Lubomir Rintel - 2.2.5-1 - New 2.2.5 release From 37d3d152fff59a26a5791f03d5effd5ba42ce987 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 3 May 2016 14:35:33 +0200 Subject: [PATCH 29/73] New 2.3.0 release --- sources | 2 +- usb_modeswitch.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 2aa7836..c1a32df 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ef86a19f0b3c4f64896d78a2ffb748e9 usb-modeswitch-2.2.5.tar.bz2 +7faf7dccd50b3ca8aaa16fcb5bf0dc2f usb-modeswitch-2.3.0.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 7b25322..1be55ce 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.2.5 -Release: 2%{?dist} +Version: 2.3.0 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -73,6 +73,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Tue May 03 2016 Lubomir Rintel - 2.3.0-1 +- New 2.3.0 release + * Fri Feb 05 2016 Fedora Release Engineering - 2.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From 52ec3eae855c34ac805140e240e246e58d3e250e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 22 Jun 2016 14:04:35 +0200 Subject: [PATCH 30/73] New 2.4.0 release --- sources | 2 +- usb_modeswitch.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index c1a32df..1083d19 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7faf7dccd50b3ca8aaa16fcb5bf0dc2f usb-modeswitch-2.3.0.tar.bz2 +6e1640db47768bb9012f91b7593116ef usb-modeswitch-2.4.0.tar.bz2 diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 1be55ce..914589f 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,7 +1,7 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.3.0 +Version: 2.4.0 Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten @@ -73,6 +73,9 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %changelog +* Wed Jun 22 2016 Lubomir Rintel - 2.4.0-1 +- New 2.4.0 release + * Tue May 03 2016 Lubomir Rintel - 2.3.0-1 - New 2.3.0 release From d272fa639ad2b8990cc521cea3f6f117d8821e0e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 22 Jun 2016 14:19:07 +0200 Subject: [PATCH 31/73] Update the manpage patch --- rhbz948451-fix-manual-pages.patch | 43 +++++++------------------------ usb_modeswitch.spec | 5 ++-- 2 files changed, 11 insertions(+), 37 deletions(-) diff --git a/rhbz948451-fix-manual-pages.patch b/rhbz948451-fix-manual-pages.patch index 62eb10c..32238b9 100644 --- a/rhbz948451-fix-manual-pages.patch +++ b/rhbz948451-fix-manual-pages.patch @@ -1,48 +1,23 @@ -diff -up usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch.c ---- usb-modeswitch-1.2.7/usb_modeswitch.c.fix-manual-pages 2013-08-20 12:12:10.752953754 +0200 -+++ usb-modeswitch-1.2.7/usb_modeswitch.c 2013-08-20 12:37:27.415242925 +0200 -@@ -1968,7 +1968,8 @@ void printHelp() +diff --git a/usb_modeswitch.c b/usb_modeswitch.c +index 52598f7..cbb8c28 100644 +--- a/usb_modeswitch.c ++++ b/usb_modeswitch.c +@@ -2060,7 +2060,8 @@ void printHelp() " -g, --device-num NUM system device number (for hard ID)\n" " -m, --message-endpoint NUM direct the message transfer there (optional)\n" " -M, --message-content message to send (hex number as string)\n" - " -2 , -3 additional messages to send (-n recommended)\n" + " -2, --message-content2 additional messages to send (-n recommended)\n" + " -3, --message-content3 additional messages to send (-n recommended)\n" - " -n, --need-response read response to the message transfer (CSW)\n" + " -w, --release-delay NUM wait NUM ms before releasing the interface\n" + " -n, --need-response obsolete, no effect (always on)\n" " -r, --response-endpoint NUM read response from there (optional)\n" - " -d, --detach-only detach the active driver, no further action\n" -@@ -1989,10 +1990,11 @@ void printHelp() - " -B, --qisda-mode apply a special procedure\n" - " -E, --quanta-mode apply a special procedure\n" - " -R, --reset-usb reset the device after all other actions\n" -+ " -w, --release-delay delay releasing the interface\n" +@@ -2084,7 +2085,7 @@ void printHelp() " -Q, --quiet don't show progress or error messages\n" " -W, --verbose print all settings and debug output\n" " -D, --sysmode specific result and syslog message\n" - " -s, --success switching result check with timeout\n" + " -s, --check-success switching result check with timeout\n" - " -I, --no-inquire do not get SCSI attributes (default on)\n\n" + " -I, --inquire obsolete, no effect\n\n" " -c, --config-file load long configuration from file\n\n" " -t, --stdinput read long configuration from stdin\n\n" -diff -up usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 ---- usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1.fix-manual-pages 2013-08-20 11:59:15.467713141 +0200 -+++ usb-modeswitch-1.2.7/usb_modeswitch_dispatcher.1 2013-08-20 12:57:51.913947292 +0200 -@@ -0,0 +1,18 @@ -+.TH "USB_MODESWITCH_DISPATCHER" "1" -+.SH "NAME" -+usb_modeswitch_dispatcher - dispatcher not intended for direct invocation. -+.SH "SYNOPSIS" -+.PP -+\fBusb_modeswitch_dispatcher\fR -+.SH "DESCRIPTION" -+.PP -+usb_modeswitch_dispatcher is doing additional device checking and -+using the usb_modeswitch binary to switch with the selected device config file. -+If no drivers are taking care of the device after the mode switch, the dispatcher -+will try to load and bind the "option" serial driver, in order to make the device -+usable. -+.PP -+This program is called by udev and is not supposed to be called directly -+by the user. -+.SH SEE ALSO -+.BR usb_modeswitch(1). diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 914589f..2899741 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -37,10 +37,9 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %prep %setup -q -n %{source_name}-%{version} - -#%patch0 -p1 -b .manpage - cp -f %{SOURCE1} device_reference.txt + +%patch0 -p1 -b .manpage %patch1 -p0 -b .utf8 From 56942f2771d7798ab5cb68400741e1635476de34 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 22 Jun 2016 14:36:30 +0200 Subject: [PATCH 32/73] Add an upstream patch note --- usb_modeswitch.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 2899741..12cdd86 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -12,6 +12,7 @@ URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt +# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2546 Patch0: rhbz948451-fix-manual-pages.patch # Submitted upstream (2014-11-24) Patch1: device_reference-utf8.patch From 3926c0e4347766063906bdaf8022c77d3ad4ca94 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 20 Jul 2016 21:50:44 +0200 Subject: [PATCH 33/73] Two fixes - Add the previously omitted systemd service file (rh #1352055) - Fix crash with invalid arguments (rh #1358472) --- 0001-Fix-crash-on-early-fail.patch | 29 +++++++++++++++++++++++++++++ usb_modeswitch.spec | 27 +++++++++++++++------------ 2 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 0001-Fix-crash-on-early-fail.patch diff --git a/0001-Fix-crash-on-early-fail.patch b/0001-Fix-crash-on-early-fail.patch new file mode 100644 index 0000000..bab74dc --- /dev/null +++ b/0001-Fix-crash-on-early-fail.patch @@ -0,0 +1,29 @@ +From 73001792b29f080fcabc57f30d6030bedb2a24b0 Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Wed, 20 Jul 2016 21:14:10 +0200 +Subject: [PATCH] Fix crash on early fail + +Don't uninitialize libusb if it has not been initialized yet. + +https://bugzilla.redhat.com/show_bug.cgi?id=1358472 +--- + usb_modeswitch.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/usb_modeswitch.c b/usb_modeswitch.c +index cbb8c28..f9c8b2e 100644 +--- a/usb_modeswitch.c ++++ b/usb_modeswitch.c +@@ -2021,7 +2021,8 @@ void close_all() + libusb_close(devh); + // libusb_exit will crash on Raspbian 7, crude protection + #ifndef __ARMEL__ +- libusb_exit(NULL); ++ if (ctx) ++ libusb_exit(NULL); + #endif + if (sysmode) + closelog(); +-- +2.7.4 + diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 12cdd86..4ebd909 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -16,11 +16,14 @@ Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt Patch0: rhbz948451-fix-manual-pages.patch # Submitted upstream (2014-11-24) Patch1: device_reference-utf8.patch +# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2556 +Patch2: 0001-Fix-crash-on-early-fail.patch BuildRequires: libusbx-devel BuildRequires: jimtcl-devel BuildRequires: systemd-devel Requires: usb_modeswitch-data >= 20121109 +Requires: systemd %description USB Modeswitch brings up your datacard into operational mode. When plugged @@ -42,6 +45,7 @@ cp -f %{SOURCE1} device_reference.txt %patch0 -p1 -b .manpage %patch1 -p0 -b .utf8 +%patch2 -p1 -b .libusb_exit %build @@ -49,17 +53,11 @@ CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install -mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/udev -mkdir -p $RPM_BUILD_ROOT%{_sbindir} -mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} - -install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ -install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher -install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ -gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 -gzip -9c usb_modeswitch_dispatcher.1 > usb_modeswitch_dispatcher.1.gz && install -m 644 usb_modeswitch_dispatcher.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 -install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modeswitch +mkdir -p $RPM_BUILD_ROOT%{_unitdir} +make install \ + DESTDIR=$RPM_BUILD_ROOT \ + SYSDIR=$RPM_BUILD_ROOT%{_unitdir} \ + UDEVDIR=$RPM_BUILD_ROOT%{_prefix}/lib/udev %files @@ -68,11 +66,16 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modes %{_mandir}/man1/usb_modeswitch.1.gz %{_mandir}/man1/usb_modeswitch_dispatcher.1.gz %{_prefix}/lib/udev/usb_modeswitch +%{_unitdir}/usb_modeswitch@.service %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Wed Jul 20 2016 Lubomir Rintel - 2.4.0-2 +- Add the previously omitted systemd service file (rh #1352055) +- Fix crash with invalid arguments (rh #1358472) + * Wed Jun 22 2016 Lubomir Rintel - 2.4.0-1 - New 2.4.0 release From 44f5b8c9ee570e43888589785ec7849ce23a6f9f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 21 Jul 2016 18:57:26 +0200 Subject: [PATCH 34/73] Fix undefined behavior in config parser --- ...itch-don-t-return-a-value-from-stack.patch | 34 +++++++++++++++++++ usb_modeswitch.spec | 8 ++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 0001-usb_modeswitch-don-t-return-a-value-from-stack.patch diff --git a/0001-usb_modeswitch-don-t-return-a-value-from-stack.patch b/0001-usb_modeswitch-don-t-return-a-value-from-stack.patch new file mode 100644 index 0000000..afe92a4 --- /dev/null +++ b/0001-usb_modeswitch-don-t-return-a-value-from-stack.patch @@ -0,0 +1,34 @@ +From 93686f8ba8c1ed6bf559dbfda53f9c7d702c76b5 Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Thu, 21 Jul 2016 18:13:58 +0200 +Subject: [PATCH] usb_modeswitch: don't return a value from stack + +The memory is not allocated anymore when the function returns and that +causes no end of mayhem and undefined behavior. + +Let's make it static so that it's perserved after the return. It wastes +LINE_DIM bytes of memory and requires the caller to consume the value +before another call, but that's no problem. + +http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2557 +--- + usb_modeswitch.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/usb_modeswitch.c b/usb_modeswitch.c +index f9c8b2e..3373ccf 100644 +--- a/usb_modeswitch.c ++++ b/usb_modeswitch.c +@@ -1855,7 +1855,8 @@ char* ReadParseParam(const char* FileName, char *VariableName) + char *FirstQuote, *LastQuote, *P1, *P2; + int Line=0; + unsigned Len=0, Pos=0; +- char Str[LINE_DIM], *token, *configPos; ++ static char Str[LINE_DIM]; ++ char *token, *configPos; + FILE *file = NULL; + + // Reading and storing input during the first call +-- +2.7.4 + diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 4ebd909..d5a8c0c 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.4.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -18,6 +18,8 @@ Patch0: rhbz948451-fix-manual-pages.patch Patch1: device_reference-utf8.patch # http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2556 Patch2: 0001-Fix-crash-on-early-fail.patch +# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2557 +Patch3: 0001-usb_modeswitch-don-t-return-a-value-from-stack.patch BuildRequires: libusbx-devel BuildRequires: jimtcl-devel @@ -46,6 +48,7 @@ cp -f %{SOURCE1} device_reference.txt %patch0 -p1 -b .manpage %patch1 -p0 -b .utf8 %patch2 -p1 -b .libusb_exit +%patch3 -p1 -b .stack %build @@ -72,6 +75,9 @@ make install \ %changelog +* Thu Jul 21 2016 Lubomir Rintel - 2.4.0-3 +- Fix undefined behavior in config parser (rh #1352055) + * Wed Jul 20 2016 Lubomir Rintel - 2.4.0-2 - Add the previously omitted systemd service file (rh #1352055) - Fix crash with invalid arguments (rh #1358472) From 85d527ef90b155788ce68b3b01e7110f1b3cd878 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 21 Jul 2016 19:19:37 +0200 Subject: [PATCH 35/73] BR systemd for _unitdir macro --- usb_modeswitch.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index d5a8c0c..41937b8 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -24,6 +24,7 @@ Patch3: 0001-usb_modeswitch-don-t-return-a-value-from-stack.patch BuildRequires: libusbx-devel BuildRequires: jimtcl-devel BuildRequires: systemd-devel +BuildRequires: systemd Requires: usb_modeswitch-data >= 20121109 Requires: systemd From 3965ee0d29e64c7af4d527718e39763b97e0e830 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 21 Jul 2016 19:19:37 +0200 Subject: [PATCH 36/73] BR systemd for _unitdir macro --- usb_modeswitch.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 41937b8..99012ba 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -23,7 +23,6 @@ Patch3: 0001-usb_modeswitch-don-t-return-a-value-from-stack.patch BuildRequires: libusbx-devel BuildRequires: jimtcl-devel -BuildRequires: systemd-devel BuildRequires: systemd Requires: usb_modeswitch-data >= 20121109 Requires: systemd From 238128f1f9364797387441506c159272b29e70b5 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 29 Jul 2016 09:51:10 +0200 Subject: [PATCH 37/73] Bump the release number to be higher than in Fedora 24 --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 99012ba..b68cd0e 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.4.0 -Release: 3%{?dist} +Release: 5%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -75,6 +75,9 @@ make install \ %changelog +* Fri Jul 29 2016 Lubomir Rintel - 2.4.0-5 +- Bump the release number to be higher than in Fedora 24 + * Thu Jul 21 2016 Lubomir Rintel - 2.4.0-3 - Fix undefined behavior in config parser (rh #1352055) From 779c2a9b03e060c14c7a2b29a0de153ead87012c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 16:49:30 +0000 Subject: [PATCH 38/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index b68cd0e..9082282 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.4.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -75,6 +75,9 @@ make install \ %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 2.4.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Fri Jul 29 2016 Lubomir Rintel - 2.4.0-5 - Bump the release number to be higher than in Fedora 24 From cbb6ca7b09396d2b72efed6a526606950f7f7516 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 21:04:46 +0000 Subject: [PATCH 39/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 9082282..b7ff929 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.4.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -75,6 +75,9 @@ make install \ %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 2.4.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 2.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 1bc4210f1ef43eee125024fcb4d0d717a855ef7b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 3 Aug 2017 09:53:06 +0000 Subject: [PATCH 40/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index b7ff929..4f8d172 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.4.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -75,6 +75,9 @@ make install \ %changelog +* Thu Aug 03 2017 Fedora Release Engineering - 2.4.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Thu Jul 27 2017 Fedora Release Engineering - 2.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 167d48b6f3130aa3989ff799f98a6257f5ead35d Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 18 Aug 2017 11:05:10 +0200 Subject: [PATCH 41/73] New 2.5.1 release --- ...itch-don-t-return-a-value-from-stack.patch | 34 ------------------- ...sb_modeswitch-fix-a-wrong-comparison.patch | 26 ++++++++++++++ ...h-count-the-target-devices-from-zero.patch | 26 ++++++++++++++ sources | 2 +- usb_modeswitch.spec | 16 ++++++--- 5 files changed, 64 insertions(+), 40 deletions(-) delete mode 100644 0001-usb_modeswitch-don-t-return-a-value-from-stack.patch create mode 100644 0001-usb_modeswitch-fix-a-wrong-comparison.patch create mode 100644 0002-usb_modeswitch-count-the-target-devices-from-zero.patch diff --git a/0001-usb_modeswitch-don-t-return-a-value-from-stack.patch b/0001-usb_modeswitch-don-t-return-a-value-from-stack.patch deleted file mode 100644 index afe92a4..0000000 --- a/0001-usb_modeswitch-don-t-return-a-value-from-stack.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 93686f8ba8c1ed6bf559dbfda53f9c7d702c76b5 Mon Sep 17 00:00:00 2001 -From: Lubomir Rintel -Date: Thu, 21 Jul 2016 18:13:58 +0200 -Subject: [PATCH] usb_modeswitch: don't return a value from stack - -The memory is not allocated anymore when the function returns and that -causes no end of mayhem and undefined behavior. - -Let's make it static so that it's perserved after the return. It wastes -LINE_DIM bytes of memory and requires the caller to consume the value -before another call, but that's no problem. - -http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2557 ---- - usb_modeswitch.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/usb_modeswitch.c b/usb_modeswitch.c -index f9c8b2e..3373ccf 100644 ---- a/usb_modeswitch.c -+++ b/usb_modeswitch.c -@@ -1855,7 +1855,8 @@ char* ReadParseParam(const char* FileName, char *VariableName) - char *FirstQuote, *LastQuote, *P1, *P2; - int Line=0; - unsigned Len=0, Pos=0; -- char Str[LINE_DIM], *token, *configPos; -+ static char Str[LINE_DIM]; -+ char *token, *configPos; - FILE *file = NULL; - - // Reading and storing input during the first call --- -2.7.4 - diff --git a/0001-usb_modeswitch-fix-a-wrong-comparison.patch b/0001-usb_modeswitch-fix-a-wrong-comparison.patch new file mode 100644 index 0000000..863e880 --- /dev/null +++ b/0001-usb_modeswitch-fix-a-wrong-comparison.patch @@ -0,0 +1,26 @@ +From bcb5b8702adbf568598988fccf256586b5788fcb Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Fri, 18 Aug 2017 10:37:15 +0200 +Subject: [PATCH 1/2] usb_modeswitch: fix a wrong comparison + +The char pointer should be dereferences when checking the string is empty. +--- + usb_modeswitch.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/usb_modeswitch.c b/usb_modeswitch.c +index b2b930b..6948a84 100644 +--- a/usb_modeswitch.c ++++ b/usb_modeswitch.c +@@ -1707,7 +1707,7 @@ struct libusb_device* search_devices( int *numFound, int vendor, char* productLi + *numFound = 0; + + /* Sanity check */ +- if (!vendor || productList == '\0') ++ if (!vendor || *productList == '\0') + return NULL; + + listcopy = malloc(strlen(productList)+1); +-- +2.13.0 + diff --git a/0002-usb_modeswitch-count-the-target-devices-from-zero.patch b/0002-usb_modeswitch-count-the-target-devices-from-zero.patch new file mode 100644 index 0000000..144d93d --- /dev/null +++ b/0002-usb_modeswitch-count-the-target-devices-from-zero.patch @@ -0,0 +1,26 @@ +From 9d05fe0e0f6b049520d97a47d042d5cfad35b5d6 Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Fri, 18 Aug 2017 10:40:41 +0200 +Subject: [PATCH 2/2] usb_modeswitch: count the target devices from zero + +Most likely a typo here. +--- + usb_modeswitch.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/usb_modeswitch.c b/usb_modeswitch.c +index 6948a84..4a1fb5c 100644 +--- a/usb_modeswitch.c ++++ b/usb_modeswitch.c +@@ -1579,7 +1579,7 @@ int checkSuccess() + * Target device on the same bus with higher device number is returned, + * description is read for syslog message + */ +- for (i=i; i < CheckSuccess; i++) { ++ for (i=0; i < CheckSuccess; i++) { + SHOW_PROGRESS(output," Search for target devices ...\n"); + dev = search_devices(&newTargetCount, TargetVendor, TargetProductList, + TargetClass, 0, SEARCH_TARGET); +-- +2.13.0 + diff --git a/sources b/sources index 1083d19..33497be 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6e1640db47768bb9012f91b7593116ef usb-modeswitch-2.4.0.tar.bz2 +SHA512 (usb-modeswitch-2.5.1.tar.bz2) = 23f1866cbb5882280369362f6d3e01d991136f322284d3f343da132520569f9e303cd9c4368a71893a3d959bae6bde2d4325f6dc175a1cb2d4dd5faa61add6ab diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 4f8d172..f782d8d 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.4.0 -Release: 8%{?dist} +Version: 2.5.1 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -18,8 +18,10 @@ Patch0: rhbz948451-fix-manual-pages.patch Patch1: device_reference-utf8.patch # http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2556 Patch2: 0001-Fix-crash-on-early-fail.patch -# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2557 -Patch3: 0001-usb_modeswitch-don-t-return-a-value-from-stack.patch +# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2732 +Patch3: 0001-usb_modeswitch-fix-a-wrong-comparison.patch +# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733 +Patch4: 0002-usb_modeswitch-count-the-target-devices-from-zero.patch BuildRequires: libusbx-devel BuildRequires: jimtcl-devel @@ -48,7 +50,8 @@ cp -f %{SOURCE1} device_reference.txt %patch0 -p1 -b .manpage %patch1 -p0 -b .utf8 %patch2 -p1 -b .libusb_exit -%patch3 -p1 -b .stack +%patch3 -p1 -b .char_deref +%patch4 -p1 -b .zero_iter %build @@ -75,6 +78,9 @@ make install \ %changelog +* Fri Aug 18 2017 Lubomir Rintel - 2.5.1-1 +- New 2.5.1 release + * Thu Aug 03 2017 Fedora Release Engineering - 2.4.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From a0cc21923b373f9a94483f162f88c2ed67b74afc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 20:10:11 +0000 Subject: [PATCH 42/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index f782d8d..0550d70 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -78,6 +78,9 @@ make install \ %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 2.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Fri Aug 18 2017 Lubomir Rintel - 2.5.1-1 - New 2.5.1 release From 881e9241f3a994d5ea953f980185399477d808e6 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 23 Feb 2018 16:23:06 +0100 Subject: [PATCH 43/73] Use LDFLAGS from redhat-rpm-config --- usb_modeswitch.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 0550d70..49cbc4f 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.5.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -55,7 +55,8 @@ cp -f %{SOURCE1} device_reference.txt %build -CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} +%{set_build_flags} +make %{?_smp_mflags} %install @@ -78,6 +79,9 @@ make install \ %changelog +* Fri Feb 23 2018 Florian Weimer - 2.5.1-3 +- Use LDFLAGS from redhat-rpm-config + * Fri Feb 09 2018 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 44f1f6829084d77c630b0a0cb268162e56750120 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 28 Feb 2018 22:19:47 +0100 Subject: [PATCH 44/73] New 2.5.2 release --- 0001-Fix-crash-on-early-fail.patch | 29 ------------------- ...h-count-the-target-devices-from-zero.patch | 12 ++++---- ...sb_modeswitch-fix-a-wrong-comparison.patch | 26 ----------------- rhbz948451-fix-manual-pages.patch | 23 --------------- sources | 2 +- usb_modeswitch.spec | 24 ++++++--------- 6 files changed, 16 insertions(+), 100 deletions(-) delete mode 100644 0001-Fix-crash-on-early-fail.patch rename 0002-usb_modeswitch-count-the-target-devices-from-zero.patch => 0001-usb_modeswitch-count-the-target-devices-from-zero.patch (67%) delete mode 100644 0001-usb_modeswitch-fix-a-wrong-comparison.patch delete mode 100644 rhbz948451-fix-manual-pages.patch diff --git a/0001-Fix-crash-on-early-fail.patch b/0001-Fix-crash-on-early-fail.patch deleted file mode 100644 index bab74dc..0000000 --- a/0001-Fix-crash-on-early-fail.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 73001792b29f080fcabc57f30d6030bedb2a24b0 Mon Sep 17 00:00:00 2001 -From: Lubomir Rintel -Date: Wed, 20 Jul 2016 21:14:10 +0200 -Subject: [PATCH] Fix crash on early fail - -Don't uninitialize libusb if it has not been initialized yet. - -https://bugzilla.redhat.com/show_bug.cgi?id=1358472 ---- - usb_modeswitch.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/usb_modeswitch.c b/usb_modeswitch.c -index cbb8c28..f9c8b2e 100644 ---- a/usb_modeswitch.c -+++ b/usb_modeswitch.c -@@ -2021,7 +2021,8 @@ void close_all() - libusb_close(devh); - // libusb_exit will crash on Raspbian 7, crude protection - #ifndef __ARMEL__ -- libusb_exit(NULL); -+ if (ctx) -+ libusb_exit(NULL); - #endif - if (sysmode) - closelog(); --- -2.7.4 - diff --git a/0002-usb_modeswitch-count-the-target-devices-from-zero.patch b/0001-usb_modeswitch-count-the-target-devices-from-zero.patch similarity index 67% rename from 0002-usb_modeswitch-count-the-target-devices-from-zero.patch rename to 0001-usb_modeswitch-count-the-target-devices-from-zero.patch index 144d93d..822ee72 100644 --- a/0002-usb_modeswitch-count-the-target-devices-from-zero.patch +++ b/0001-usb_modeswitch-count-the-target-devices-from-zero.patch @@ -1,7 +1,7 @@ -From 9d05fe0e0f6b049520d97a47d042d5cfad35b5d6 Mon Sep 17 00:00:00 2001 +From 99cade3624c432a478e624f278692cdedf4e0450 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 18 Aug 2017 10:40:41 +0200 -Subject: [PATCH 2/2] usb_modeswitch: count the target devices from zero +Subject: [PATCH] usb_modeswitch: count the target devices from zero Most likely a typo here. --- @@ -9,18 +9,18 @@ Most likely a typo here. 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_modeswitch.c b/usb_modeswitch.c -index 6948a84..4a1fb5c 100644 +index 3239946..1b3bf9d 100644 --- a/usb_modeswitch.c +++ b/usb_modeswitch.c -@@ -1579,7 +1579,7 @@ int checkSuccess() - * Target device on the same bus with higher device number is returned, +@@ -1582,7 +1582,7 @@ int checkSuccess() * description is read for syslog message */ + // Wait counter passed on from previous loop - for (i=i; i < CheckSuccess; i++) { + for (i=0; i < CheckSuccess; i++) { SHOW_PROGRESS(output," Search for target devices ...\n"); dev = search_devices(&newTargetCount, TargetVendor, TargetProductList, TargetClass, 0, SEARCH_TARGET); -- -2.13.0 +2.14.3 diff --git a/0001-usb_modeswitch-fix-a-wrong-comparison.patch b/0001-usb_modeswitch-fix-a-wrong-comparison.patch deleted file mode 100644 index 863e880..0000000 --- a/0001-usb_modeswitch-fix-a-wrong-comparison.patch +++ /dev/null @@ -1,26 +0,0 @@ -From bcb5b8702adbf568598988fccf256586b5788fcb Mon Sep 17 00:00:00 2001 -From: Lubomir Rintel -Date: Fri, 18 Aug 2017 10:37:15 +0200 -Subject: [PATCH 1/2] usb_modeswitch: fix a wrong comparison - -The char pointer should be dereferences when checking the string is empty. ---- - usb_modeswitch.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/usb_modeswitch.c b/usb_modeswitch.c -index b2b930b..6948a84 100644 ---- a/usb_modeswitch.c -+++ b/usb_modeswitch.c -@@ -1707,7 +1707,7 @@ struct libusb_device* search_devices( int *numFound, int vendor, char* productLi - *numFound = 0; - - /* Sanity check */ -- if (!vendor || productList == '\0') -+ if (!vendor || *productList == '\0') - return NULL; - - listcopy = malloc(strlen(productList)+1); --- -2.13.0 - diff --git a/rhbz948451-fix-manual-pages.patch b/rhbz948451-fix-manual-pages.patch deleted file mode 100644 index 32238b9..0000000 --- a/rhbz948451-fix-manual-pages.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/usb_modeswitch.c b/usb_modeswitch.c -index 52598f7..cbb8c28 100644 ---- a/usb_modeswitch.c -+++ b/usb_modeswitch.c -@@ -2060,7 +2060,8 @@ void printHelp() - " -g, --device-num NUM system device number (for hard ID)\n" - " -m, --message-endpoint NUM direct the message transfer there (optional)\n" - " -M, --message-content message to send (hex number as string)\n" -- " -2 , -3 additional messages to send (-n recommended)\n" -+ " -2, --message-content2 additional messages to send (-n recommended)\n" -+ " -3, --message-content3 additional messages to send (-n recommended)\n" - " -w, --release-delay NUM wait NUM ms before releasing the interface\n" - " -n, --need-response obsolete, no effect (always on)\n" - " -r, --response-endpoint NUM read response from there (optional)\n" -@@ -2084,7 +2085,7 @@ void printHelp() - " -Q, --quiet don't show progress or error messages\n" - " -W, --verbose print all settings and debug output\n" - " -D, --sysmode specific result and syslog message\n" -- " -s, --success switching result check with timeout\n" -+ " -s, --check-success switching result check with timeout\n" - " -I, --inquire obsolete, no effect\n\n" - " -c, --config-file load long configuration from file\n\n" - " -t, --stdinput read long configuration from stdin\n\n" diff --git a/sources b/sources index 33497be..f0f3584 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (usb-modeswitch-2.5.1.tar.bz2) = 23f1866cbb5882280369362f6d3e01d991136f322284d3f343da132520569f9e303cd9c4368a71893a3d959bae6bde2d4325f6dc175a1cb2d4dd5faa61add6ab +SHA512 (usb-modeswitch-2.5.2.tar.bz2) = ad2a7e5134379664fca83b85803e52ec8e3fe3c2d6c633eb5af3c291c43b15ca4a67198612864de01d146a029ee5c475c8c7dc71d16e3a475b532837c5dd34ea diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 49cbc4f..3887da0 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.5.1 -Release: 3%{?dist} +Version: 2.5.2 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -12,16 +12,10 @@ URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt -# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2546 -Patch0: rhbz948451-fix-manual-pages.patch # Submitted upstream (2014-11-24) -Patch1: device_reference-utf8.patch -# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2556 -Patch2: 0001-Fix-crash-on-early-fail.patch -# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2732 -Patch3: 0001-usb_modeswitch-fix-a-wrong-comparison.patch +Patch0: device_reference-utf8.patch # http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733 -Patch4: 0002-usb_modeswitch-count-the-target-devices-from-zero.patch +Patch1: 0001-usb_modeswitch-count-the-target-devices-from-zero.patch BuildRequires: libusbx-devel BuildRequires: jimtcl-devel @@ -47,11 +41,8 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %setup -q -n %{source_name}-%{version} cp -f %{SOURCE1} device_reference.txt -%patch0 -p1 -b .manpage -%patch1 -p0 -b .utf8 -%patch2 -p1 -b .libusb_exit -%patch3 -p1 -b .char_deref -%patch4 -p1 -b .zero_iter +%patch0 -p0 +%patch1 -p1 %build @@ -79,6 +70,9 @@ make install \ %changelog +* Wed Feb 28 2018 Lubomir Rintel - 2.5.2-1 +- New 2.5.2 release + * Fri Feb 23 2018 Florian Weimer - 2.5.1-3 - Use LDFLAGS from redhat-rpm-config From 583d7c750034d9d66f82c9ffb3f3640d558c6b9a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 08:19:42 +0000 Subject: [PATCH 45/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 3887da0..6626648 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -70,6 +70,9 @@ make install \ %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 2.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 28 2018 Lubomir Rintel - 2.5.2-1 - New 2.5.2 release From 5e11010ea9dc25517e5516ff2180ca929ac33106 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 24 Jul 2018 16:37:42 +0200 Subject: [PATCH 46/73] Add missing BuildRequires on gcc /bin/sh: cc: command not found References: https://bugzilla.redhat.com/show_bug.cgi?id=1606622 Signed-off-by: Igor Gnatenko --- usb_modeswitch.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 6626648..9a0baa2 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -17,6 +17,7 @@ Patch0: device_reference-utf8.patch # http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733 Patch1: 0001-usb_modeswitch-count-the-target-devices-from-zero.patch +BuildRequires: gcc BuildRequires: libusbx-devel BuildRequires: jimtcl-devel BuildRequires: systemd From 0f7f377d1bf947340931513177cc6e8c5966bff9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:29 +0100 Subject: [PATCH 47/73] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- usb_modeswitch.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 9a0baa2..f570cba 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -5,7 +5,6 @@ Version: 2.5.2 Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten -Group: Applications/System License: GPLv2+ URL: http://www.draisberghof.de/usb_modeswitch/ From abe42ed6b84a60822aae89ca4d4d7a9499860401 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 3 Feb 2019 10:56:53 +0000 Subject: [PATCH 48/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index f570cba..a6e3ae8 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.5.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ make install \ %changelog +* Sun Feb 03 2019 Fedora Release Engineering - 2.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Sat Jul 14 2018 Fedora Release Engineering - 2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From b19e83bb5490fd5bfcd1ad3d7ed7ebcd5831498f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jul 2019 02:38:54 +0000 Subject: [PATCH 49/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index a6e3ae8..cbe2af0 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.5.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ make install \ %changelog +* Sat Jul 27 2019 Fedora Release Engineering - 2.5.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sun Feb 03 2019 Fedora Release Engineering - 2.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From d78d63e3d262c5005b7b89747cc801ca7037d279 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 31 Jan 2020 02:45:54 +0000 Subject: [PATCH 50/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index cbe2af0..31c1f5e 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.5.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ make install \ %changelog +* Fri Jan 31 2020 Fedora Release Engineering - 2.5.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Sat Jul 27 2019 Fedora Release Engineering - 2.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 870d68e8f351c0feed424ce3d63e858d6d7f51df Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 24 Mar 2020 15:51:28 +0100 Subject: [PATCH 51/73] New 2.6.0 release --- sources | 2 +- usb_modeswitch.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index f0f3584..8c9f5d0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (usb-modeswitch-2.5.2.tar.bz2) = ad2a7e5134379664fca83b85803e52ec8e3fe3c2d6c633eb5af3c291c43b15ca4a67198612864de01d146a029ee5c475c8c7dc71d16e3a475b532837c5dd34ea +SHA512 (usb-modeswitch-2.6.0.tar.bz2) = 43e6d885380602ddaaf771af73a302a7de30f7ae6ea58b2b572a9ad9ec77a453789020595de33a8b04ec209414fe08face2bbf84c67271d7b6b90700face09ef diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 31c1f5e..34bf55d 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.5.2 -Release: 5%{?dist} +Version: 2.6.0 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ make install \ %changelog +* Tue Mar 24 2020 Lubomir Rintel - 2.6.0-1 +- New 2.6.0 release + * Fri Jan 31 2020 Fedora Release Engineering - 2.5.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 8a2687d26df8c3658d7a3545f50046fe9c26b03b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 13:24:50 +0000 Subject: [PATCH 52/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 34bf55d..12ac4fe 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ make install \ %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 2.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue Mar 24 2020 Lubomir Rintel - 2.6.0-1 - New 2.6.0 release From 421c517eafe1ece07e0bc761193db6949702b308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Tue, 29 Sep 2020 23:58:21 +0100 Subject: [PATCH 53/73] Use make macros (https://src.fedoraproject.org/rpms/usb_modeswitch/pull-request/1) https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- usb_modeswitch.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 12ac4fe..26dcf92 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -47,13 +47,12 @@ cp -f %{SOURCE1} device_reference.txt %build %{set_build_flags} -make %{?_smp_mflags} +%make_build %install mkdir -p $RPM_BUILD_ROOT%{_unitdir} -make install \ - DESTDIR=$RPM_BUILD_ROOT \ +%make_install \ SYSDIR=$RPM_BUILD_ROOT%{_unitdir} \ UDEVDIR=$RPM_BUILD_ROOT%{_prefix}/lib/udev @@ -70,6 +69,10 @@ make install \ %changelog +* Tue Sep 29 2020 Sérgio Basto - 2.6.0-3 +- Use make macros (https://src.fedoraproject.org/rpms/usb_modeswitch/pull-request/1) +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + * Wed Jul 29 2020 Fedora Release Engineering - 2.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 8258cbbb77096aee1d03f1d6a308ad628aebaef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Mon, 30 Nov 2020 00:39:59 +0000 Subject: [PATCH 54/73] Update usb_modeswitch to 2.6.1 Drop patch1, http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733 Drop BR jimtcl-devel, if we don't install dynlink-dispatcher --- sources | 2 +- usb_modeswitch.spec | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/sources b/sources index 8c9f5d0..85020d3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (usb-modeswitch-2.6.0.tar.bz2) = 43e6d885380602ddaaf771af73a302a7de30f7ae6ea58b2b572a9ad9ec77a453789020595de33a8b04ec209414fe08face2bbf84c67271d7b6b90700face09ef +SHA512 (usb-modeswitch-2.6.1.tar.bz2) = 5d800b45257ca1182a13155dc37b614ee2d93273ed226cc9d05b6ae423f9e88b7c9aca6829604bdb86f68707ddf2c51c9ad2bcf898b8261b2c5bb56a21351e1e diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 26dcf92..da06fc9 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.6.0 -Release: 3%{?dist} +Version: 2.6.1 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -13,12 +13,11 @@ Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt # Submitted upstream (2014-11-24) Patch0: device_reference-utf8.patch -# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733 -Patch1: 0001-usb_modeswitch-count-the-target-devices-from-zero.patch BuildRequires: gcc BuildRequires: libusbx-devel -BuildRequires: jimtcl-devel +# "tcl" or "jimsh"), use the light-weight installation: +#BuildRequires: jimtcl-devel BuildRequires: systemd Requires: usb_modeswitch-data >= 20121109 Requires: systemd @@ -42,11 +41,12 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. cp -f %{SOURCE1} device_reference.txt %patch0 -p0 -%patch1 -p1 %build %{set_build_flags} +# this will require jimtcl-devel +#make_build all-with-dynlink-dispatcher %make_build @@ -69,6 +69,11 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Wed Nov 18 2020 Sérgio Basto - 2.6.1-1 +- Update usb_modeswitch to 2.6.1 +- Drop patch1, http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733 +- Drop BR jimtcl-devel, if we don't install dynlink-dispatcher + * Tue Sep 29 2020 Sérgio Basto - 2.6.0-3 - Use make macros (https://src.fedoraproject.org/rpms/usb_modeswitch/pull-request/1) - https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro From 9001135f20acbad4537169990a5f1aa7aec8e1ef Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 9 Jan 2021 00:29:12 +0000 Subject: [PATCH 55/73] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- usb_modeswitch.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index da06fc9..748e61d 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -14,6 +14,7 @@ Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt # Submitted upstream (2014-11-24) Patch0: device_reference-utf8.patch +BuildRequires: make BuildRequires: gcc BuildRequires: libusbx-devel # "tcl" or "jimsh"), use the light-weight installation: From 6ca83012be88dfbcb419de35b120122580bbbe05 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 22:46:57 +0000 Subject: [PATCH 56/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 748e61d..985d47c 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 2.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Nov 18 2020 Sérgio Basto - 2.6.1-1 - Update usb_modeswitch to 2.6.1 - Drop patch1, http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2733 From 49b50913421d4f5fe931ebd0832a36573f7ffd42 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 20:09:46 +0000 Subject: [PATCH 57/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 985d47c..7aee53a 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 2.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Wed Jan 27 2021 Fedora Release Engineering - 2.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 9718ae0f033794be4497eba2a99521c59586d86a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jan 2022 03:38:53 +0000 Subject: [PATCH 58/73] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 7aee53a..f3c632c 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Sat Jan 22 2022 Fedora Release Engineering - 2.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 2.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From a38ecae85205a56652b96b4faf96be28ab1cd85f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 11:31:50 +0000 Subject: [PATCH 59/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index f3c632c..4356975 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Sat Jul 23 2022 Fedora Release Engineering - 2.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Sat Jan 22 2022 Fedora Release Engineering - 2.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From c848680baedcb3b7ab5c77257614f996261c0768 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 21 Jan 2023 05:57:03 +0000 Subject: [PATCH 60/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 4356975..c86b93e 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Sat Jan 21 2023 Fedora Release Engineering - 2.6.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Sat Jul 23 2022 Fedora Release Engineering - 2.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 2e63e4c74f9126111c996a9918628ae794dd4506 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jul 2023 17:15:04 +0000 Subject: [PATCH 61/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index c86b93e..d8dc392 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -70,6 +70,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Sat Jul 22 2023 Fedora Release Engineering - 2.6.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Sat Jan 21 2023 Fedora Release Engineering - 2.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 80331ece0f63e7693924db492b385a33335c4a17 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Thu, 24 Aug 2023 19:34:56 +0200 Subject: [PATCH 62/73] Cleanup spec: use %license, use %patch 0 - Use spdx license specifier - Remove unused patch --- ...h-count-the-target-devices-from-zero.patch | 26 ------------------- usb_modeswitch.spec | 11 +++++--- 2 files changed, 8 insertions(+), 29 deletions(-) delete mode 100644 0001-usb_modeswitch-count-the-target-devices-from-zero.patch diff --git a/0001-usb_modeswitch-count-the-target-devices-from-zero.patch b/0001-usb_modeswitch-count-the-target-devices-from-zero.patch deleted file mode 100644 index 822ee72..0000000 --- a/0001-usb_modeswitch-count-the-target-devices-from-zero.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 99cade3624c432a478e624f278692cdedf4e0450 Mon Sep 17 00:00:00 2001 -From: Lubomir Rintel -Date: Fri, 18 Aug 2017 10:40:41 +0200 -Subject: [PATCH] usb_modeswitch: count the target devices from zero - -Most likely a typo here. ---- - usb_modeswitch.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/usb_modeswitch.c b/usb_modeswitch.c -index 3239946..1b3bf9d 100644 ---- a/usb_modeswitch.c -+++ b/usb_modeswitch.c -@@ -1582,7 +1582,7 @@ int checkSuccess() - * description is read for syslog message - */ - // Wait counter passed on from previous loop -- for (i=i; i < CheckSuccess; i++) { -+ for (i=0; i < CheckSuccess; i++) { - SHOW_PROGRESS(output," Search for target devices ...\n"); - dev = search_devices(&newTargetCount, TargetVendor, TargetProductList, - TargetClass, 0, SEARCH_TARGET); --- -2.14.3 - diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index d8dc392..1e8ca40 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPLv2+ @@ -41,7 +41,7 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. %setup -q -n %{source_name}-%{version} cp -f %{SOURCE1} device_reference.txt -%patch0 -p0 +%patch 0 -p0 %build @@ -66,10 +66,15 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %{_prefix}/lib/udev/usb_modeswitch %{_unitdir}/usb_modeswitch@.service %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf -%doc COPYING README ChangeLog device_reference.txt +%doc README ChangeLog device_reference.txt +%license COPYING %changelog +* Thu Aug 24 2023 Till Maas - 2.6.1-8 +- Cleanup spec: use %%license, use %%patch 0 +- Use spdx license specifier + * Sat Jul 22 2023 Fedora Release Engineering - 2.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 674dbed569c51da70e5db9d6a21c527d11d22d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Thu, 2 Nov 2023 16:00:46 +0100 Subject: [PATCH 63/73] Really use SPDX license identifier --- usb_modeswitch.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 1e8ca40..1c4a45a 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,10 +2,10 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten -License: GPLv2+ +License: GPL-2.0-or-later URL: http://www.draisberghof.de/usb_modeswitch/ Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 @@ -71,6 +71,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Thu Nov 2 2023 Íñigo Huguet - 2.6.1-9 +- Really use SPDX license specifier + * Thu Aug 24 2023 Till Maas - 2.6.1-8 - Cleanup spec: use %%license, use %%patch 0 - Use spdx license specifier From d4c4cd8bdc991acb14e9c1a0bc17003c8b91e0a1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jan 2024 07:16:03 +0000 Subject: [PATCH 64/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 1c4a45a..941af31 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -71,6 +71,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Sat Jan 27 2024 Fedora Release Engineering - 2.6.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Nov 2 2023 Íñigo Huguet - 2.6.1-9 - Really use SPDX license specifier From 109fa600da9ed93fe023dcebda30a82730bccab4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 08:24:06 +0000 Subject: [PATCH 65/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 941af31..f9eff0f 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -71,6 +71,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Sat Jul 20 2024 Fedora Release Engineering - 2.6.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Sat Jan 27 2024 Fedora Release Engineering - 2.6.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From ec98dd90b073bad9355ee2c47b5fc8b72dc8fd64 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 19 Jan 2025 13:55:05 +0000 Subject: [PATCH 66/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index f9eff0f..a87d449 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.1 -Release: 11%{?dist} +Release: 12%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -71,6 +71,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Sun Jan 19 2025 Fedora Release Engineering - 2.6.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Sat Jul 20 2024 Fedora Release Engineering - 2.6.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From b2294969f258acd735edc2d02c73cc2cd54b173a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 20 Feb 2025 01:00:02 +0000 Subject: [PATCH 67/73] Update usb_modeswitch to 2.6.2 Resolves: rhbz#2346392 --- device_reference.txt | 14 ++++++++------ sources | 2 +- usb_modeswitch.spec | 18 ++++++++++++------ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/device_reference.txt b/device_reference.txt index d34ec3e..d3065d9 100644 --- a/device_reference.txt +++ b/device_reference.txt @@ -1,16 +1,16 @@ # # Device Reference (UTF-8 encoding used) # -# Last modified: 2014-05-29 +# Last modified: 2017-02-05 # # Collection of configurations for usb_modeswitch, a mode switching # tool for controlling flip flop (multiple mode) USB devices # # Detailed instructions and a friendly forum on the homepage: # http://www.draisberghof.de/usb_modeswitch -# -# You may want to check for a newer version of this file at: -# http://www.draisberghof.de/usb_modeswitch/device_reference.txt +# +# Note that new devices are no longer added to this file. See the +# config files included with the data package for these # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # @@ -21,9 +21,10 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -# For a parameter reference see file REFERENCE in the data package +# For a parameter reference see file REFERENCE in the data package or +# http://www.draisberghof.de/usb_modeswitch/parameter_reference.txt # -# If you find working codes and configurations, please contribute +# If you find new working codes and configurations, please report # them! @@ -31,6 +32,7 @@ ####################################################### # Option GlobeSurfer Icon (aka "Vodafone EasyBox") +# This is the thing that started it all ... # # The MessageContent is identical for all Option devices diff --git a/sources b/sources index 85020d3..6e90156 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (usb-modeswitch-2.6.1.tar.bz2) = 5d800b45257ca1182a13155dc37b614ee2d93273ed226cc9d05b6ae423f9e88b7c9aca6829604bdb86f68707ddf2c51c9ad2bcf898b8261b2c5bb56a21351e1e +SHA512 (usb-modeswitch-2.6.2.tar.bz2) = adaedf89de3c5f9dc55da7bb5bb3fe8165c0424cffacb00f83876094b7abdc386ced9959e5dbdf46ab06aa1d03fbfca13df539421489ef4d2dd0f72742057f3d diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index a87d449..08a53ba 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,8 +1,8 @@ %define source_name usb-modeswitch Name: usb_modeswitch -Version: 2.6.1 -Release: 12%{?dist} +Version: 2.6.2 +Release: 1%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -52,10 +52,11 @@ cp -f %{SOURCE1} device_reference.txt %install -mkdir -p $RPM_BUILD_ROOT%{_unitdir} +mkdir -p %{buildroot}%{_unitdir} %make_install \ - SYSDIR=$RPM_BUILD_ROOT%{_unitdir} \ - UDEVDIR=$RPM_BUILD_ROOT%{_prefix}/lib/udev + SYSDIR=%{buildroot}%{_unitdir} \ + SBINDIR=%{buildroot}%{_sbindir} \ + UDEVDIR=%{buildroot}%{_udevrulesdir} %files @@ -63,7 +64,7 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz %{_mandir}/man1/usb_modeswitch_dispatcher.1.gz -%{_prefix}/lib/udev/usb_modeswitch +%{_udevrulesdir}/usb_modeswitch %{_unitdir}/usb_modeswitch@.service %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc README ChangeLog device_reference.txt @@ -71,6 +72,11 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} %changelog +* Thu Feb 20 2025 Sérgio Basto - 2.6.2-1 +- Update usb_modeswitch to 2.6.2 +- Resolves: rhbz#2346392 +- Fix build related to /usr/sbin move + * Sun Jan 19 2025 Fedora Release Engineering - 2.6.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 4898f94e0e3f5cd4de76101bc04fa11a9501efc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 20 Feb 2025 01:26:39 +0000 Subject: [PATCH 68/73] vim :retab --- usb_modeswitch.spec | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 08a53ba..1edcff4 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -1,27 +1,27 @@ -%define source_name usb-modeswitch +%define source_name usb-modeswitch -Name: usb_modeswitch -Version: 2.6.2 -Release: 1%{?dist} -Summary: USB Modeswitch gets mobile broadband cards in operational mode -Summary(de): USB Modeswitch aktiviert UMTS-Karten -License: GPL-2.0-or-later -URL: http://www.draisberghof.de/usb_modeswitch/ +Name: usb_modeswitch +Version: 2.6.2 +Release: 1%{?dist} +Summary: USB Modeswitch gets mobile broadband cards in operational mode +Summary(de): USB Modeswitch aktiviert UMTS-Karten +License: GPL-2.0-or-later +URL: http://www.draisberghof.de/usb_modeswitch/ -Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 -Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt +Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2 +Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt # Submitted upstream (2014-11-24) Patch0: device_reference-utf8.patch BuildRequires: make BuildRequires: gcc -BuildRequires: libusbx-devel +BuildRequires: libusbx-devel # "tcl" or "jimsh"), use the light-weight installation: -#BuildRequires: jimtcl-devel -BuildRequires: systemd -Requires: usb_modeswitch-data >= 20121109 -Requires: systemd +#BuildRequires: jimtcl-devel +BuildRequires: systemd +Requires: usb_modeswitch-data >= 20121109 +Requires: systemd %description USB Modeswitch brings up your datacard into operational mode. When plugged @@ -30,7 +30,7 @@ installation files. This tool deactivates this cdrom-device and enables the real communication device. It supports most devices built and sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel. -%description -l de +%description -l de USB Modeswitch deaktiviert die CDROM-Emulation einiger UMTS-Karten. Dadurch erkennt Linux die Datenkarte und kann damit Internet- Verbindungen aufbauen. Die gängigen Karten von Huawei, T-Mobile, From 75c85809651a3969c43a9b2513252d5d466f219d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 27 Feb 2025 13:05:59 +0000 Subject: [PATCH 69/73] Revert the move of usb_modeswitch to /usr/lib/udev/rules.d, usb_modeswitch is not an rule --- usb_modeswitch.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 1edcff4..faefe1c 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -56,7 +56,7 @@ mkdir -p %{buildroot}%{_unitdir} %make_install \ SYSDIR=%{buildroot}%{_unitdir} \ SBINDIR=%{buildroot}%{_sbindir} \ - UDEVDIR=%{buildroot}%{_udevrulesdir} + UDEVDIR=%{buildroot}%{_prefix}/lib/udev %files @@ -64,7 +64,7 @@ mkdir -p %{buildroot}%{_unitdir} %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz %{_mandir}/man1/usb_modeswitch_dispatcher.1.gz -%{_udevrulesdir}/usb_modeswitch +%{_prefix}/lib/udev/usb_modeswitch %{_unitdir}/usb_modeswitch@.service %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc README ChangeLog device_reference.txt @@ -72,6 +72,10 @@ mkdir -p %{buildroot}%{_unitdir} %changelog +* Thu Feb 27 2025 Sérgio Basto - 2.6.2-2 +- Revert the move of usb_modeswitch to /usr/lib/udev/rules.d, usb_modeswitch is + not an rule + * Thu Feb 20 2025 Sérgio Basto - 2.6.2-1 - Update usb_modeswitch to 2.6.2 - Resolves: rhbz#2346392 From 98f0e006befea208d8e72f37dff6a757b3fa914b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 19:51:55 +0000 Subject: [PATCH 70/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index faefe1c..c4125fc 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -72,6 +72,9 @@ mkdir -p %{buildroot}%{_unitdir} %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 2.6.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Feb 27 2025 Sérgio Basto - 2.6.2-2 - Revert the move of usb_modeswitch to /usr/lib/udev/rules.d, usb_modeswitch is not an rule From 498f59aeeda8bbb76ce40905d1565769130c5c48 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 14 Aug 2025 16:51:51 +0200 Subject: [PATCH 71/73] Do not let the unit send SIGTERM to usb_modeswitch mid-switch. --- usb_modeswitch-2.6.2-SIGTERM.patch | 49 ++++++++++++++++++++++++++++++ usb_modeswitch.spec | 10 ++++-- 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 usb_modeswitch-2.6.2-SIGTERM.patch diff --git a/usb_modeswitch-2.6.2-SIGTERM.patch b/usb_modeswitch-2.6.2-SIGTERM.patch new file mode 100644 index 0000000..ce4352b --- /dev/null +++ b/usb_modeswitch-2.6.2-SIGTERM.patch @@ -0,0 +1,49 @@ +From e3cf80c95a1c67d05dded68ec171bfde4686003f Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Thu, 14 Aug 2025 16:35:56 +0200 +Subject: [PATCH] service: Do not ever send SIGTERM to the unit + +Following happens when modem 03f0:a31d (HP lt4132 LTE/HSPA+ 4G Module) is +plugged: + +- systemd-udevd emits "add" action +- The "add" action triggers restart of usb_modeswitch@.service +- usb_modeswitch@.service starts usb_modeswitch +- Another udev rule renames the network interface from usb0 to enp0... +- Above causes systemd-udevd emit "change" action for the device +- The "change" action triggers another restart of usb_modeswitch@.service +- usb_modeswitch run initially gets terminated mid-air +- Device drops off the bus +- Infinite sadness + +Possible solutions: + +- The udev rule could just emit the "change" action. I have no idea why + it handles "change" actions, but it looks intentional -> No touchy + from me. +- usb_modeswitch could just trap TERM and shut down gracefully. This + involves Tcl -> No touchy. +- The systemd unit could just send an innocent signal instead of TERM + and just let usb_modeswitch end its life journey naturally. + Let's do this, because it involves least brain. + +Anybody please feel free to send this upstream. +--- + usb_modeswitch@.service | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/usb_modeswitch@.service b/usb_modeswitch@.service +index 22d2ea7..23d4ed0 100644 +--- a/usb_modeswitch@.service ++++ b/usb_modeswitch@.service +@@ -7,3 +7,7 @@ ExecStart=/usr/sbin/usb_modeswitch_dispatcher --switch-mode %i + # Testing + #ExecStart=/bin/echo "usb_modeswitch.service: device name is %i" + ++# Do not ever terminate violently on restart -- interrupting the switching ++# transaction will crash some modems! We'll terminate shortly anyways. ++# If we hang, FinalKillSignal (defaults to SIGKILL) will take care of that. ++KillSignal=SIGCONT +-- +2.50.1 + diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index c4125fc..b6413f4 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -13,8 +13,10 @@ Source1: http://www.draisberghof.de/usb_modeswitch/device_reference.txt # Submitted upstream (2014-11-24) Patch0: device_reference-utf8.patch +# Not submitted upstream due to lack of courage +Patch1: usb_modeswitch-2.6.2-SIGTERM.patch -BuildRequires: make +BuildRequires: make BuildRequires: gcc BuildRequires: libusbx-devel # "tcl" or "jimsh"), use the light-weight installation: @@ -42,6 +44,7 @@ Vodafone, Option, ZTE und Novatell werden unterstützt. cp -f %{SOURCE1} device_reference.txt %patch 0 -p0 +%patch 1 -p1 %build @@ -72,6 +75,9 @@ mkdir -p %{buildroot}%{_unitdir} %changelog +* Thu Aug 14 2025 Lubomir Rintel - 2.6.2-4 +- Do not let the unit send SIGTERM to usb_modeswitch mid-switch. + * Fri Jul 25 2025 Fedora Release Engineering - 2.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From f8de5edc6887d3f8468b0ea6bd59e365963de0d9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 19:41:04 +0000 Subject: [PATCH 72/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index b6413f4..351889f 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -75,6 +75,9 @@ mkdir -p %{buildroot}%{_unitdir} %changelog +* Sat Jan 17 2026 Fedora Release Engineering - 2.6.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Thu Aug 14 2025 Lubomir Rintel - 2.6.2-4 - Do not let the unit send SIGTERM to usb_modeswitch mid-switch. From d1134f50580081fdd195ea5c9ab24dac6b59f2d9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 08:15:41 +0000 Subject: [PATCH 73/73] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- usb_modeswitch.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 351889f..b4fa0c0 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 2.6.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten License: GPL-2.0-or-later @@ -75,6 +75,9 @@ mkdir -p %{buildroot}%{_unitdir} %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 2.6.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Sat Jan 17 2026 Fedora Release Engineering - 2.6.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild