usb_modeswitch/huawei-timing.patch

22 lines
1.2 KiB
Diff

diff -uNr usb-modeswitch-data-20140529/40-usb_modeswitch.rules new-usb-modeswitch-data-20140529/40-usb_modeswitch.rules
--- usb-modeswitch-data-20140529/40-usb_modeswitch.rules 2014-05-29 21:51:51.000000000 +0200
+++ new-usb-modeswitch-data-20140529/40-usb_modeswitch.rules 2014-10-02 13:02:06.847608203 +0200
@@ -21,7 +21,7 @@
# Generic entry for all Huawei devices
-ATTRS{idVendor}=="12d1", ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch '%b/%k'"
+ATTRS{idVendor}=="12d1", ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch -w 3000 '%b/%k'"
# HP LaserJet Professional P1102
ATTR{idVendor}=="03f0", ATTR{idProduct}=="002a", RUN+="usb_modeswitch '%b/%k'"
diff -uNr usb-modeswitch-data-20140529/usb_modeswitch.d/12d1:1c0b new-usb-modeswitch-data-20140529/usb_modeswitch.d/12d1:1c0b
--- usb-modeswitch-data-20140529/usb_modeswitch.d/12d1:1c0b 2014-05-29 14:57:00.000000000 +0200
+++ new-usb-modeswitch-data-20140529/usb_modeswitch.d/12d1:1c0b 2014-10-02 13:01:32.617257701 +0200
@@ -2,3 +2,4 @@
TargetVendor=0x12d1
TargetProductList="1c05,1c07,1c08,1c10"
HuaweiNewMode=1
+WaitBefore=3
\ No newline at end of file