From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Blin Date: Tue, 23 Aug 2005 14:10:12 +0000 Subject: Re: Run hotplug scripts after device node is created? 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 Sergey Vlasov writes: > On Tue, 23 Aug 2005 14:27:09 +0200 Marco d'Itri wrote: > >> On Aug 23, Olivier Blin wrote: >> >> > What should we do then? Write an udev rule per device ids? >> Yes, or match on some other appropriate value. >> >> > This would end up in a huge number of rules, can udev manage that >> > without performance cost? >> I doubt that the number or rules would be high. > > $ grep -v '^#' /etc/hotplug/usb/libsane.usermap | wc -l > 210 > $ grep -v '^#' /etc/hotplug/usb/usbcam.usermap | wc -l > 372 Same on Mandriva (mostly gphoto devices): $ grep -v '^#' /etc/hotplug/usb.*map | wc -l 936 > These are basically just a bunch of USB vendor/device IDs, and it is > likely that most devices don't have any reliable attributes which would > allow to match a group of them with a single rule. Right, it means as many rules as devices. -- Olivier Blin Mandriva Mandrakesoft becomes Mandriva ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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