Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
305fafd3ba |
2 changed files with 56 additions and 1 deletions
47
0001-Bring-back-the-module-binding.patch
Normal file
47
0001-Bring-back-the-module-binding.patch
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
From 0cfa6ad3a6f1098c92ee7d5a2d6d9217d774d05e Mon Sep 17 00:00:00 2001
|
||||
From: Lubomir Rintel <lkundrak@v3.sk>
|
||||
Date: Sun, 24 Jul 2016 11:23:58 +0200
|
||||
Subject: [PATCH] Bring back the module binding
|
||||
|
||||
Not sure why it was removed here and it breaks support for some devices.
|
||||
|
||||
http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2560
|
||||
---
|
||||
40-usb_modeswitch.rules | 14 +++++++++++++-
|
||||
1 file changed, 13 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/40-usb_modeswitch.rules b/40-usb_modeswitch.rules
|
||||
index 94bd742..5486491 100644
|
||||
--- a/40-usb_modeswitch.rules
|
||||
+++ b/40-usb_modeswitch.rules
|
||||
@@ -8,7 +8,16 @@ ACTION!="add|change", GOTO="modeswitch_rules_end"
|
||||
# transfer; checked against a list of known modems, or else no action
|
||||
KERNEL=="ttyUSB*", ATTRS{bNumConfigurations}=="*", PROGRAM="usb_modeswitch --symlink-name %p %s{idVendor} %s{idProduct} %E{PRODUCT}", SYMLINK+="%c"
|
||||
|
||||
-SUBSYSTEM!="usb", ACTION!="add",, GOTO="modeswitch_rules_end"
|
||||
+SUBSYSTEM!="usb", GOTO="modeswitch_rules_end"
|
||||
+
|
||||
+# Adds the device ID to the "option" driver after a warm boot
|
||||
+# in cases when the device is yet unknown to the driver; checked
|
||||
+# against a list of known modems, or else no action
|
||||
+ATTR{bInterfaceClass}=="ff", ATTR{bInterfaceNumber}=="00", ATTRS{bNumConfigurations}=="*", RUN+="usb_modeswitch --driver-bind %p %s{idVendor} %s{idProduct} %E{PRODUCT}"
|
||||
+
|
||||
+
|
||||
+# Don't continue on "change" event, prevent trigger by changed configuration
|
||||
+ACTION!="add", GOTO="modeswitch_rules_end"
|
||||
|
||||
|
||||
# Generic entry for most Huawei devices, excluding Android phones
|
||||
@@ -62,6 +71,9 @@ ATTR{idVendor}=="0421", ATTR{idProduct}=="0632", RUN+="usb_modeswitch '%b/%k'"
|
||||
# Nokia CS-21M-02
|
||||
ATTR{idVendor}=="0421", ATTR{idProduct}=="0637", RUN+="usb_modeswitch '%b/%k'"
|
||||
|
||||
+# Logitech G920 Racing Wheel
|
||||
+ATTR{idVendor}=="046d", ATTR{idProduct}=="c261", RUN+="usb_modeswitch '%b/%k'"
|
||||
+
|
||||
# Philips (?), Vodafone MD950 (Wisue Technology)
|
||||
ATTR{idVendor}=="0471", ATTR{idProduct}=="1210", RUN+="usb_modeswitch '%b/%k'"
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Name: usb_modeswitch-data
|
||||
Version: 20160612
|
||||
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
|
||||
|
|
@ -14,6 +14,8 @@ BuildRequires: systemd
|
|||
Requires: systemd
|
||||
Requires: usb_modeswitch >= 2.4.0
|
||||
|
||||
# http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=2&t=2560
|
||||
Patch0: 0001-Bring-back-the-module-binding.patch
|
||||
|
||||
%description
|
||||
USB Modeswitch brings up your datacard into operational mode. When plugged
|
||||
|
|
@ -36,8 +38,11 @@ um zu funktionieren.
|
|||
|
||||
%prep
|
||||
%setup -q -n %{source_name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
# The shipped "prebuilt" udev rules file diverged from what's being generated
|
||||
#make %{_smp_mflags}
|
||||
|
||||
%install
|
||||
make install \
|
||||
|
|
@ -57,6 +62,9 @@ make install \
|
|||
%doc ChangeLog README REFERENCE
|
||||
|
||||
%changelog
|
||||
* Tue Jul 26 2016 Lubomir Rintel <lkundrak@v3.sk> - 20160612-3
|
||||
- Bring back the module binding
|
||||
|
||||
* Thu Jul 21 2016 Lubomir Rintel <lkundrak@v3.sk> - 20160612-2
|
||||
- Install the rules into proper location
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue