<html><head></head><body>I was under the impression that udev rules could also be used with the device ID. That way you detect what was plugged in and then run whatever&#39;s needed on that port. Need to know the ID in advance or use a broad category from the text strings.<br><br><div class="gmail_quote">On November 19, 2015 9:45:40 AM EST, Chris Fowler &lt;cfowler@outpostsentinel.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br /></div><div><br /></div><hr id="zwchr" data-marker="__DIVIDER__" /><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Sergio Chaves" &lt;sergio.chaves@gmail.com&gt;<br /><b>To: </b>"Atlanta Linux Enthusiasts" &lt;ale@ale.org&gt;<br /><b>Sent: </b>Thursday, November 19, 2015 7:49:48 AM<br /><b>Subject: </b>Re: [ale] USB port identification<br /></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF;
margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr"><div>You may need a udev rule to accomplish what you want.<br /></div>Something like 7.12.12 in this page <a href="http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/symlinks.html" target="_blank" data-mce-href="http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/symlinks.html">http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/symlinks.html</a><br /><br /></div></blockquote><div><br /></div><div>I only wish..</div><div><br data-mce-bogus="1" /></div><div><br data-mce-bogus="1" /></div><div>The problem is that The Bus 00X Device 00X is changing. &nbsp;Unplug the m
 odem
and plug it right back in and you'll get N+1 where N was what is was before. &nbsp;This makes identification of the port on the hardware nearly impossible.</div><div><br data-mce-bogus="1" /></div><div>I need to identify the port on the hardware being used. &nbsp;Udev rules run a script where I take the Device/Bus value and determine what port it is attached. &nbsp;I then symlink a name in /dev to what the kernel assigned it. &nbsp;On the older hardware if you plugged this modem on the front port then /dev/usbmodem2 would be created. &nbsp;On back /dev/usbmodem0</div><div><br data-mce-bogus="1" /></div><div>The real port you use dictates what programs will run on that tty. &nbsp;The people that use this system almost no nothing about computers. &nbsp;If any, it would be Windows. &nbsp;I've automated everything so they can hop on a train in NYC, go to a site, plug it up, and leave.</div><div><br data-mce-bogus="1" /></div></div></div><p style="margin-top: 2.5em; margin-bottom:
  1em;
border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />Ale mailing list<br />Ale@ale.org<br /><a href="http://mail.ale.org/mailman/listinfo/ale">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">http://mail.ale.org/mailman/listinfo</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>