Hi all,
I'm using USB_ModeSwitch (version 2.1.0) on an embedded device. It does work, but not without modification.
For every device I need to modify the udev rules file, for example:
From:
# TP-Link MA180
ATTR{idVendor}=="2357", ATTR{idProduct}=="0200", RUN+="usb_modeswitch '%b/%k'"
To:
# TP-Link MA180
ATTR{idVendor}=="2357", ATTR{idProduct}=="0200", RUN+="/usr/sbin/usb_modeswitch -v 0x2357 -p 0x0200 -c /usr/share/usb_modeswitch/2357:0200"
The thing is; I don't understand why - and I can't seem to find any descriptions of similar problems on Google - or on here.
Thanks,
Martin
Re: usb_modeswitch not triggering without modification
The udev rules do not call the usb_modeswitch binary directly. They run the shell scriptmartinb wrote:The thing is; I don't understand why - and I can't seem to find any descriptions of similar problems on Google - or on here.
"/lib/udev/usb_modeswitch" which in turn calls the wrapper usb_modeswitch_dispatcher. See also the main usb_modeswitch page (link at the top), paragraph "How to use".
Usually, you don't have to care about this at all. If it does not work, please provide more information about your system. Did you install usb_modeswitch from source? If not, please point to the respective install package.