By putting usb_modeswitch in verbose mode (flag EnableLogging in /etc/usb_modeswitch.conf), I was able to see that, when plugging the key after boot, usb_modeswitch gets the configuration file from the entry 12d1:1446 in /usr/share/usb_modeswitch/configPack.tar.gz.<div>
<br></div><div><blockquote>USB_ModeSwitch log from Sun May 15 10:48:53 CEST 2011<br>raw args from udev: /2-1.2:1.0<br>Using global config file: /etc/usb_modeswitch.conf<br>Bus ID for device not given by udev.<br> Trying to determine it from kernel name (2-1.2:1.0) ...<br>
USB dir exists: /sys/bus/usb/devices/2-1.2<br>Warning: USB attribute &quot;serial&quot; not found.<br>----------------<br>USB values from sysfs:<br>  manufacturer<span class="Apple-tab-span" style="white-space:pre">        </span>HUAWEI Technology<br>
  product<span class="Apple-tab-span" style="white-space:pre">        </span>HUAWEI Mobile<br>  serial<span class="Apple-tab-span" style="white-space:pre">        <br></span>----------------<br>Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz<br>
Searching overriding entries named: /etc/usb_modeswitch.d/12d1:1446*<br>SCSI attributes not needed, moving on<br>checking config: 12d1:1446<br>Extracting config 12d1:1446 from collection /usr/share/usb_modeswitch/configPack.tar.gz<br>
! matched, now switching<br> (running command: /usr/sbin/usb_modeswitch -I -W -c /var/lib/usb_modeswitch/current_cfg)</blockquote><div><br></div><div><br></div><div>So I unpacked the entry in /etc/usb_modeswitch.d/ and put the following line in /etc/rc.local </div>
<div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
 /usr/sbin/usb_modeswitch -I -W -c /etc/usb_modeswitch.d/12d1\:1446</blockquote><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br>
</div><div>This way the key works is correctly initialized at boot. What I don&#39;t understand is why usb_modeswitch is called by udev (&quot;raw args from udev: /2-1.2:1.0&quot;) when the key is plugged in after boot while it doesn&#39;t appear to be called at boot.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div><br></div></div>