From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Date: Fri, 04 Jun 2004 10:46:36 +0000 Subject: Udev and initscripts Message-Id: <40C0530C.7010102@ums.usu.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org It has been stated many times that scripts that should run after device is available should live in /etc/dev.d directory. However, I have trouble following this. The recommendation works perfectly when one has to wait for creation of a single device, but it is difficult or impossible to implement when waiting for many unknown devices. The problem is that Linux From Scratch needs an initscript with the following properties: 1) it should read a file "/etc/sysconfig/modules" (aka "/etc/modules" in Debian). All modules listed there by the user should be modprobed into the kernel. 2) The next initscript should be able to assume that all devices it needs are already there. How do I implement (2), i.e., wait for creation of all devices that can be created by a user-specified list of modules? Just doing nothing does not work, as illustrated by the following example: [root in ~]# modprobe nbd ; ( ls /dev/nbd* | wc -l ) ; sleep 1 ; \ ( ls /dev/nbd* | wc -l ) 113 128 -- Alexander E. Patrakov ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ 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