Based on Christophe's post I modified /lib/udev/usb_modeswitch to wait for a number of seconds before running the modeswitch_dispatcher. Some experimenting determined the minimum number of seconds to be 11. My modem is now detected and switched automatically, even if I have to wait a few seconds longer than usual.
Obviously this is not a real solution but it might point someone more knowledgable in the right direction.
Based on Christophe's post I modified /lib/udev/ usb_modeswitch to wait for a number of seconds before running the modeswitch_ dispatcher. Some experimenting determined the minimum number of seconds to be 11. My modem is now detected and switched automatically, even if I have to wait a few seconds longer than usual.
Obviously this is not a real solution but it might point someone more knowledgable in the right direction.
Patch attached.