Re: [OpenWrt-Devel] Add target device id for 3g dongles

2010-10-20 Thread Daniel A. Nagy
Please take a look at my solution in the https://www.epointsystem.org/svn/vending_machine/hotspot/trunk feed. Jo-Philipp Wich wrote: > Hi, > > I'm not sure whether it is okay to unconditional assume that this device is > managed by option[1]. > > Also can you rewrite this cat | grep | sed thing

Re: [OpenWrt-Devel] Add target device id for 3g dongles

2010-10-20 Thread Roberto Riggio
Il 20/10/2010 17:55, Jo-Philipp Wich ha scritto: Hi, I'm not sure whether it is okay to unconditional assume that this device is managed by option[1]. You are right, however I would not know how to generalize this, given that usb-modeswitch is an external package I would just check if the file

Re: [OpenWrt-Devel] Add target device id for 3g dongles

2010-10-20 Thread Jo-Philipp Wich
Hi, I'm not sure whether it is okay to unconditional assume that this device is managed by option[1]. Also can you rewrite this cat | grep | sed thing please? You can combine those calls into a single sed command: tVid=$(sed -ne 's/TargetVendor[^=]*=\(.*\)/\1/p' "${configs%% *}") Also localize

[OpenWrt-Devel] Add target device id for 3g dongles

2010-10-20 Thread Roberto Riggio
With some modems the ttyUSBx device are not automatically created after the modeswitch (for example with my k3765). This patch adds a new id for the target device after the mode switch. Signed-off-by: Roberto Riggio -- Index: utils/usb-modeswitch/files/modeswitch.hotplug