Public bug reported:

The script should use extra configuration files from /etc/usb_modeswitch.d but 
it doesn't.
Attached is a patch to make this work. 
I have tested this with a Huawei k4510 modem. Using this configuration in 
/etc/usb_modesswitch.d/121d:145c 
########################################################
# Vodafone (Huawei) K4510

DefaultVendor= 0x12d1
DefaultProduct=0x14c5

TargetVendor=  0x12d1
TargetProduct= 0x14cb

CheckSuccess=20

MessageContent="55534243123456780000000000000011062000000100000000000000000000"

Here is the log output before applying the patch:
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
Searching overriding entries named: /etc/usb_modeswitch.d/12d1:14c5*
Aargh! Config file missing for 12d1:14c5! Exiting

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: usb-modeswitch 1.1.7-1
ProcVersionSignature: Ubuntu 2.6.38-11.50-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic x86_64
Architecture: amd64
Date: Wed Sep 21 15:41:55 2011
EcryptfsInUse: Yes
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: usb-modeswitch
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: usb-modeswitch (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/855526

Title:
  usb_modeswitch_dispatcher doesn't use configuration from
  /etc/usb_modeswitch.d

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/855526/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to