coldplug scripts
http://www.bofh.it/~md/debian/coldplug_0.0.tar.gz
Here I uploaded a preliminary (and TOTALLY UNTESTED) version of my new coldplugging scripts (and hotplug-related udev rules).
The plan is to generate at boot time a set of synthesized hotplug events which are as similar as possible as the ones which would be captured in the initramfs by udeveventrecorder.
The implementation is an init script which will run the /etc/hotplug/*.rc shell scripts. Each one which will synthesize the events (I expect there are less than 70 on a typical system) and dump them to files in /dev/.events/. Then the init script will use udevinitsend to feed the events to udevd, which will use a few RUN rules to load the relevant modules or user space scripts.
Even if implemented in shell the scripts appear to be very fast, so I doubt that this will create performance issues.
Signature · 13 lines
ciao, Marco ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel