From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott James Remnant Date: Mon, 03 Oct 2005 16:31:35 +0000 Subject: Re: [RFC] coldplug - emit hotplug events from sysfs Message-Id: <1128357095.7525.9.camel@localhost.localdomain> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-sZqZ/2YuS+39YaMWstYw" List-Id: References: <20051001124943.GA26076@vrfy.org> In-Reply-To: <20051001124943.GA26076@vrfy.org> To: linux-hotplug@vger.kernel.org --=-sZqZ/2YuS+39YaMWstYw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2005-10-03 at 17:29 +0200, Kay Sievers wrote: > I don't see how to use a udev rules to continue the init script which > depends on the tty's to be around after that. Care to explain? >=20 e.g. for each of /sys/class/t*/*, write the name into a file (/tmp/waiting) and write to the uevent... in a udev rule for events, remove the line from the /tmp/waiting file. Sleep until the /tmp/waiting file is zero bytes in size. Ok, that's just as hacky as grovelling around in ps I guess, but at least it has the advantage that there's no possibility of no udev processes having been started by the next line of shell - which there is with your example. There's almost certainly a more elegant way, but basically mark the events you're waiting for and wait for them all to come back. Scott --=20 Scott James Remnant scott@ubuntu.com --=-sZqZ/2YuS+39YaMWstYw Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDQVznSnQiFMl4yK4RAtyjAJ4yW4mybXJJPSIm/N50WfkGrsTskwCfZr4e Y0HsXMenmk+EuUsyFzZuxsk= =ZJUa -----END PGP SIGNATURE----- --=-sZqZ/2YuS+39YaMWstYw-- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel