Comment 33 for bug 824147

Revision history for this message
Andrei Lisin (terranium) wrote :

and of usb_modeswitch skript was
exec 1<&- 2<&- 5<&- 7<&-
(
 . /lib/udev/hotplug.functions
 wait_for_file /usr/sbin/usb_modeswitch_dispatcher
 exec usb_modeswitch_dispatcher --switch-mode $1 $0 >>/dev/null 2>&1 &
 exit 0
) &
exit 0

became:
exec 1<&- 2<&- 5<&- 7<&-
(
 . /lib/udev/hotplug.functions
 wait_for_file /usr/sbin/usb_modeswitch_dispatcher
 exec ltrace /usr/sbin/usb_modeswitch_dispatcher --switch-mode $1 $0 >/tmp/ltrace.txt 2>&1 &
 exit 0
) &
exit 0

ltrace is attached

workaround that I have: I created an udev rule
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1bbb", ATTRS{idProduct}=="0017", RUN+="/sbin/modprobe usbserial vendor=0x1bbb product=0x0017"
and it works