From: zhangb <zhangb@wyplayasia.com>
To: linux-hotplug@vger.kernel.org
Subject: Run a program based on two devices creation
Date: Mon, 30 Nov 2009 09:00:54 +0000 [thread overview]
Message-ID: <1259571654.11522.3.camel@localhost> (raw)
Hi gentlemen,
Nice to see you.
Here is my situation:
I have a program chang-lids, i want it to be run when the following two
conditions comes true,
(1) "/dev/ttyAS1" created.
(2) "/dev/mcuserv.0" created.
Here is what i did:
1) put the change-lids into /lib/udev
2) creat a file /etc/udev/rules.d/75-smcu.
rules which contains:
ACTION="add", KERNEL="mcuserv.0", RUN+="/lib/udev/change-lids"
I found that the "/dev/ttyAS1" has not been created, when the
change-lids was called, so change-lids failed when trying to open the
"/dev/ttyAS1" with a new line discipline.
Does anyone have a good suggestion about this issue?
Thanks in advance!
Jerry
reply other threads:[~2009-11-30 9:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1259571654.11522.3.camel@localhost \
--to=zhangb@wyplayasia.com \
--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).