From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 14 Apr 2003 18:59:36 +0000 Subject: [RFC] /sbin/hotplug multiplexor Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi all, With the advent of a lot of people wanting to use /sbin/hotplug to add their own different types of functions, I want to propose the following replacement for the current /sbin/hotplug: ----- #!/bin/sh DIR="/etc/hotplug.d" for I in "${DIR}/"* ; do $I $1 & done exit 1 ----- Then all scripts/programs/whatever that wants to get called when /sbin/hotplug goes off can add themselves to the /etc/hotplug.d directory. This should help solve the recent devlabel issue with the current hotplug scripts, and allow things like udev to also watch all hotplug actions. Any objections or comments? If not, I'll make the changes in the linux-hotplug project and release a new version based on this. Thanks to Martin Schwenke for giving me this idea (even if he doesn't realize it :) Note, this is only for the "big" hotplug versions that live on everyone's disk. I'm still advocating something small like a combination of udev and dietHotplug for the initramfs image. thanks, greg k-h ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ 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