From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Tue, 13 Dec 2005 00:49:31 +0000 Subject: Re: [PATCH] The Mandriva Collection Message-Id: <20051213004931.GA14814@wonderland.linux.it> 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 On Dec 12, Olivier Blin wrote: > And it needs a VID/PID rules list, which may not be easy to write > without duplication. What's the proper construction to replace this > kind of usermaps? In one of my packages (which maybe should just have used fxload for stage1...) I use: BUS!="usb", ACTION!="add", GOTO="eciadsl_usb_add_end" # Aethra Starmodem SYSFS{idVendor}="0659", SYSFS{idProduct}="0915", \ RUN+="/lib/hotplug/eciadsl stage1" SYSFS{idVendor}="0915", SYSFS{idProduct}="0916", \ RUN+="/lib/hotplug/eciadsl stage2 4 GS7070" ... LABEL="eciadsl_usb_add_end" Obviously I did not manually write rules for each of the 26 modems supported, a trivial perl program does it. Similar programs have been implemented by the libgphoto2 and libsane maintainers. > It can probably be simplified using PRODUCT values: Ugly, and probably slower. -- ciao, Marco ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&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