From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Thu, 15 Nov 2001 22:51:10 +0000 Subject: Re: hotplug arch. and apps 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 > I've come up with an idea that would make this REALLY easy to do, and it > is only slightly different than what hotplug currently does. instead of > just relying on usb.handmap or usb.usermap, why not create a directory > /etc/hotplug/usb.map/ and place files in there that contain the ID's for > the supported devices? the hotplug agent can open each file, look for ID's > and then run the corresponding scripts. Sounds good to me. Got a patch against CVS? :) > like, you can place all the HID device "lines" in /etc/hotplug/usb.map/hid Input system hotplugging will finish someday ... those tweaks should not be needed forever :) > in our (gphoto's) case, we can place everything in > /etc/hotplug/usb.map/camera for all known (still) camera ID's. I'd rather have that be specific to gPhoto2. Best not to have gPhoto2 take over such responsibilities for other programs, that'd just shift all the problems into gPhoto2. > is it possible alter the usb agent to work in this way? the downside would > be disk hits for each file in /etc/hotplug/usb.map/* (a little slower), Only for devices that aren't already handled by the kernel. - Dave _______________________________________________ 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