From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Zeuthen Date: Sat, 30 Jan 2010 18:27:25 +0000 Subject: Re: Multi-serial USB Device Message-Id: <1264876045.6213.2.camel@localhost.localdomain> List-Id: References: <7a09e2151001301005m29daf8c8ndad88969d63918a4@mail.gmail.com> In-Reply-To: <7a09e2151001301005m29daf8c8ndad88969d63918a4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, 2010-01-30 at 13:05 -0500, Paul Dugas wrote: > I tried adding a PROGRAM setting to run a little script that looked to > count the /dev/ttyLogger1USB* devices had already been created and it > always returned 0. Are the device files and symlinks created in > parallel or in bulk at the end and thus this approach wouldn't work? > > I tried another PROGRAM that opened the port and polled the logger to > see what port this was (that's supported by the device's protocol) but > the device file didn't exist yet. Is there a way to trigger this > approach after the device file has been created? Is there a way to > temporarily create the device in the script instead? > > Anyone got a suggestion on how to solve this? You should be able to use IMPORT and $tempnode - see the udev(7) man page and, say, /lib/udev/rules.d/60-persistent-storage.rules for an example of where this is used. David