linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Zeuthen <david@fubar.dk>
To: linux-hotplug@vger.kernel.org
Subject: Re: Multi-serial USB Device
Date: Sat, 30 Jan 2010 18:27:25 +0000	[thread overview]
Message-ID: <1264876045.6213.2.camel@localhost.localdomain> (raw)
In-Reply-To: <7a09e2151001301005m29daf8c8ndad88969d63918a4@mail.gmail.com>

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



  parent reply	other threads:[~2010-01-30 18:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-30 18:05 Multi-serial USB Device Paul Dugas
2010-01-30 18:25 ` Paul Bender
2010-01-30 18:27 ` David Zeuthen [this message]
2010-01-30 18:34 ` Greg KH
2010-01-30 18:50 ` Paul Dugas
2010-01-30 18:50 ` Paul Dugas
2010-01-30 18:59 ` Paul Dugas
2010-01-30 19:58 ` David Zeuthen
2010-01-30 20:36 ` Paul Dugas
2010-01-31  0:47 ` Greg KH
2010-01-31  1:27 ` Paul Dugas
2010-01-31  2:55 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1264876045.6213.2.camel@localhost.localdomain \
    --to=david@fubar.dk \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).