From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederic Lepied Date: Wed, 16 Apr 2003 06:22:13 +0000 Subject: Re: [RFC] /sbin/hotplug multiplexor - take 2 Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greg KH writes: > Ok, based on the comments so far, how about this proposed version of > /sbin/hotplug to provide a multiplexor? I think it would be good to launch only the files ending by a special extension to avoid running backup files. Something like that: #!/bin/sh DIR="/etc/hotplug.d" for I in "${DIR}/$1/"*.hotplug "${DIR}/"all/*.hotplug ; do test -x $I && $I $1 ; done -- Fred - May the source be with you ------------------------------------------------------- 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