* Run a program based on two devices creation
@ 2009-11-30 9:00 zhangb
0 siblings, 0 replies; only message in thread
From: zhangb @ 2009-11-30 9:00 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-30 9:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30 9:00 Run a program based on two devices creation zhangb
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).