From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Tue, 22 Feb 2005 17:53:26 +0000 Subject: Re: replace dev.d/ with a rule based program execution Message-Id: <421B7196.5080406@redhat.com> List-Id: References: <20050221181242.GA22891@vrfy.org> In-Reply-To: <20050221181242.GA22891@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: ... > I've replaced the following: > [kay@pim ~]$ tree /etc/dev.d/ > /etc/dev.d/ > |-- default > | |-- 00-log.dev > | |-- 05-pam_console.dev -> ../../udev/scripts/pam_console.dev > | `-- 10-hal.dev -> /usr/libexec/hal.dev > |-- fd0 > | `-- 10-MAKEDEV.dev -> ../../udev/scripts/MAKEDEV.dev > |-- fd1 > | `-- 10-MAKEDEV.dev -> ../../udev/scripts/MAKEDEV.dev > |-- fd2 > | `-- 10-MAKEDEV.dev -> ../../udev/scripts/MAKEDEV.dev > |-- fd3 > | `-- 10-MAKEDEV.dev -> ../../udev/scripts/MAKEDEV.dev > `-- sound > `-- alsa.dev > > With these rules: > KERNEL="ttyUSB*", HOTPLUG="" > SUBSYSTEM="tty", OPTIONS="no_hotplug" > SUBSYSTEM="vc", OPTIONS="no_hotplug" > > ACTION="add", SUBSYSTEM="sound", HOTPLUG="/etc/dev.d/sound/alsa.dev" > ACTION="add", KERNEL="fd*", HOTPLUG="/etc/udev/scripts/MAKEDEV.dev" > ACTION="add", HOTPLUG="/etc/udev/scripts/pam_console.dev" > > HOTPLUG="/usr/libexec/hal.dev" > HOTPLUG="/etc/dev.d/default/00-log.dev" > > On my box, udevstart takes 2.1 seconds instead of 8.6 seconds to run with > my default setup. Mainly because it will not run anything for all the virtual > tty devices. Any tty device which should be catched, needs a rule before the > "no_hotplug" option. Very nice! I like that :) ------------------------------------------------------- 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