From 45cc570f0beef856817f90d58cbfc5931f75acfe Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 30 Dec 2010 16:21:31 -0600 Subject: [PATCH] New upstream version; add support for ZTE MF691 (T-Mobile Rocket 2) --- .gitignore | 1 + sources | 3 +-- usb_modeswitch-data.spec | 10 ++++++++-- ztemf691.patch | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 ztemf691.patch diff --git a/.gitignore b/.gitignore index 2ec3490..875f3e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ usb-modeswitch-data-20100621.tar.bz2 usb-modeswitch-data-20100707.tar.bz2 usb-modeswitch-data-20100817.tar.bz2 +/usb-modeswitch-data-20101222.tar.bz2 diff --git a/sources b/sources index a341547..7d14299 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -d1fcc283c64a0877cdcac9cd682052f9 usb-modeswitch-data-20100707.tar.bz2 -ec177e3b48b7b2211cd8dbc7ebcfa863 usb-modeswitch-data-20100817.tar.bz2 +e386386bc389c2a8184c7ea4136fde0e usb-modeswitch-data-20101222.tar.bz2 diff --git a/usb_modeswitch-data.spec b/usb_modeswitch-data.spec index af0db98..4c5640f 100644 --- a/usb_modeswitch-data.spec +++ b/usb_modeswitch-data.spec @@ -1,9 +1,9 @@ %define source_name usb-modeswitch-data Name: usb_modeswitch-data -Version: 20100817 +Version: 20101222 Release: 1%{?dist} -Summary: USB Modeswitch gets 4G cards in operational mode +Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System License: GPLv2+ @@ -14,6 +14,8 @@ Requires: tcl Requires: udev Requires: usb_modeswitch >= 1.1.2 +Patch0: ztemf691.patch + %description USB Modeswitch brings up your datacard into operational mode. When plugged in they identify themselves as cdrom and present some non-Linux compatible @@ -35,6 +37,7 @@ um zu funktionieren. %prep %setup -q -n %{source_name}-%{version} +%patch0 -p1 %install @@ -61,6 +64,9 @@ udevadm control --reload-rules %doc ChangeLog COPYING README %changelog +* Thu Dec 30 2010 Dan Williams 20101222-1 +- New upstream + * Tue Aug 24 2010 Huzaifa Sidhpurwala 20100817-1 - New upstream diff --git a/ztemf691.patch b/ztemf691.patch new file mode 100644 index 0000000..8b71d76 --- /dev/null +++ b/ztemf691.patch @@ -0,0 +1,33 @@ +diff -up usb-modeswitch-data-20101222/40-usb_modeswitch.rules.1201 usb-modeswitch-data-20101222/40-usb_modeswitch.rules +--- usb-modeswitch-data-20101222/40-usb_modeswitch.rules.1201 2010-12-30 16:09:26.951149009 -0600 ++++ usb-modeswitch-data-20101222/40-usb_modeswitch.rules 2010-12-30 16:10:07.591149003 -0600 +@@ -399,6 +399,9 @@ ATTRS{idVendor}=="19d2", ATTRS{idProduct + # Vodafone (ZTE) K3806-Z + ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1013", RUN+="usb_modeswitch '%b/%k'" + ++# T-Mobile Rocket 2 (ZTE) MF691 ++ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1201", RUN+="usb_modeswitch '%b/%k'" ++ + # ZTE devices + ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", RUN+="usb_modeswitch '%b/%k'" + +diff -up usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201.1201 usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201 +--- usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201.1201 2010-12-30 16:10:39.107149000 -0600 ++++ usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201 2010-12-30 16:11:28.013149003 -0600 +@@ -0,0 +1,16 @@ ++######################################################## ++# T-Mobile Rocket 2 (ZTE) MF691 ++# ++# 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= 0x1201 ++ ++TargetVendor= 0x19d2 ++TargetProduct= 0x1203 ++ ++MessageContent="5553424392020000000000000000061B000000020000000000000000000000" ++