<div dir="ltr">Software changes, but all the modprobe versions I&#39;ve seen only load the requested driver if it isn&#39;t already loaded.  Subsequent invocations for an already loaded driver are pretty much harmless.<div><br></div><div>Are there any ill consequences you&#39;re seeing?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 3, 2016 at 12:26 PM, Todor Fassl <span dir="ltr">&lt;<a href="mailto:fassl.tod@gmail.com" target="_blank">fassl.tod@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All,<br>
<br>
I want to write a udev rule to load a driver for a hardware speech synthesizer. Many synths have both USB and serial connectors. The linux screen reader always uses the serial port. But I thought I could write a udev rule to detect when the synth is plugged into the USB port and then load the driver for the serial port. So a blind person would have to plug the synth into both the serial and the USB ports but I don&#39;t figure that is a problem.  It is way easier than trying to log in without speech and then try to type in the modprobe command. I am hoping to write a whole series of these rules and then make them available for download.<br>
<br>
I got a rule to work but it seems to try to load the driver several times. Is anybody experienced enough with udev rules to tell me if this is a problem and if so, how it can be fixed? Here is my rule:<br>
<br>
ACTION==&quot;add&quot;, SYSFS{idVendor}==&quot;0dd0&quot;, SYSFS{idProduct}==&quot;1002&quot;, RUN=&quot;/sbin/modprobe speakup_ltlk&quot;<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
Todd<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">  Ed Cashin &lt;<a href="mailto:ecashin@noserose.net" target="_blank">ecashin@noserose.net</a>&gt;</div></div>
</div>