From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Date: Mon, 12 Apr 2004 02:25:32 +0000 Subject: Re: Little script for ISAPNP hotplug Message-Id: <4079FE1C.6050101@ums.usu.ru> List-Id: References: <200404092044.54429.simone.gotti@email.it> In-Reply-To: <200404092044.54429.simone.gotti@email.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Simone Gotti wrote: >Thanks to Alexander E. Patrakov that made a similar script, I've added his >functions for the conversion of the string form to the ID form in the >isapnp.rc script. > > The script that you attached has no equivalent of my simplify_isapnpmap_line() function and will thus fail if the line in modules.isapnpmap contains multiple vendor/function pairs and the second one (not the first one) matches The line in modules.isapnpmap is: # module cardvendor carddevice driver_data vendor function [vendor2 function2] ... \--------"the rest"-------------------/ The simplify_isapnpmap_line() function expects the $module, $cardvendor and $carddevice variables to be set, driver_data ignored, and "the rest" to be the arguments. It outputs lines of the following form: # module cardvendor carddevice vendor function # module cardvendor carddevice vendor2 function2 to match against. Or do you just ignore the "vendor" and "function" fields? This is dangerous, since there are lines with 0xffff as both carddevice and cardvendor. Also, your script outputs: /proc/bus/pnp/ or /proc/bus/isapnp/ not found, Is it enabled in your kernel? if the support is compiled into the kernel, but there are no isapnp devices in the system. -- Alexander E. Patrakov ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&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