From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kevin P. Fleming" Date: Tue, 29 Mar 2005 15:20:22 +0000 Subject: Re: [PATCH] udev: add rule based program execution Message-Id: <42497236.8030704@starnetworks.us> List-Id: References: <20050329145403.GA16544@vrfy.org> In-Reply-To: <20050329145403.GA16544@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: > On my box I've removed all scripts from /etc/dev.d and replaced it with > following rules in the main rules file: > > ACTION="add", SUBSYSTEM="sound", HOTPLUG="/etc/udev/scripts/alsa.dev" > ACTION="add", KERNEL="fd*", HOTPLUG="/etc/udev/scripts/MAKEDEV.dev" > KERNEL="ttyUSB*", HOTPLUG="/etc/udev/scripts/test-serial-device" > SUBSYSTEM="tty", OPTIONS="last_rule" > HOTPLUG="/etc/udev/scripts/pam_console.dev" > HOTPLUG="/etc/udev/sripts/log.dev" > > This cuts down the execution-time of udevstart from ~10 seconds to ~2 > seconds, cause the hundreds of tty events will not call any script. Very, very nice! Simple, logical, understandable, usually means it's the right solution :-) ------------------------------------------------------- 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