From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Kagan Date: Mon, 28 Feb 2005 19:11:42 +0000 Subject: Re: The Next Generation Message-Id: <20050228191142.GH2964@katya> List-Id: References: <20050217190941.GA1561@vrfy.org> In-Reply-To: <20050217190941.GA1561@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Feb 28, 2005 at 07:41:41PM +0100, Kay Sievers wrote: > I've changes the HOTPLUG key to be able to read a whole subdirectory > with a wildcard instead of only one file. The following three rules will > emulate the dev.d/ directory handling we currently have compiled in: > > HOTPLUG="/etc/dev.d/%D/*.dev" > HOTPLUG="/etc/dev.d/%S/*.dev" > HOTPLUG="/etc/dev.d/default/*.dev" Given that this is a compatibility stuff, can't it be handled externally, without bloating udev? E.g. HOTPLUG="/usr/bin/run-parts /etc/dev.d/default" or even simply HOTPLUG="sh -c 'for f in /etc/dev.d/default/*.dev; do [ -x \$f ] && \$f; done'" Another suggestion is of a syntactic sugar kind: would it be too hard to implement key substitution in actions with a generic syntax, rather than adding %-conversion specifier for each possible substitution, e.g. HOTPLUG="foo $SUBSYSTEM $SYSFS{bar} $ENV{baz}" Cheers, Roman. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ 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