usb_modeswitch not triggering without modification
Posted: 06 Oct 2014, 16:47
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
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