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
and of usb_modeswitch skript was hotplug. functions usb_modeswitch_ dispatcher dispatcher --switch-mode $1 $0 >>/dev/null 2>&1 &
exec 1<&- 2<&- 5<&- 7<&-
(
. /lib/udev/
wait_for_file /usr/sbin/
exec usb_modeswitch_
exit 0
) &
exit 0
became: hotplug. functions usb_modeswitch_ dispatcher usb_modeswitch_ dispatcher --switch-mode $1 $0 >/tmp/ltrace.txt 2>&1 &
exec 1<&- 2<&- 5<&- 7<&-
(
. /lib/udev/
wait_for_file /usr/sbin/
exec ltrace /usr/sbin/
exit 0
) &
exit 0
ltrace is attached
workaround that I have: I created an udev rule =="1bbb" , ATTRS{idProduct }=="0017" , RUN+="/ sbin/modprobe usbserial vendor=0x1bbb product=0x0017"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}
and it works