From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Anderson Date: Mon, 14 Jan 2002 20:29:30 +0000 Subject: Re: possible change to usb.agent 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 >Date: Mon, 14 Jan 2002 11:17:38 -0800 >From: David Brownell >X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 >Content-type: text/plain; charset=iso-8859-1 >X-Priority: 3 >X-MSMail-priority: Normal > >> I used the jPhoto example, except where they used "usb.handmap" I used >> "usb.usermap". It seemed like the comments indicated it should be in >> the "usb.usermap" section to me, perhaps I misunderstood the comments? > >That was a bug in the jPhoto "hotsync" example, which is >now fixed. (Thanks for reporting that!) "usermap" is correct. > >Given that, I don't think there's a bug. When you load a kernel >module "foo", if there's a script /etc/hotplug/usb/foo it will also >be run. You shouldn't need a "usermap" entry in addition to >a kernel module ... just name the script after the module. > >- Dave Thanks for getting back to me so quickly. Obviously you know what you're talking about, and it indeed works great if I simply link my script in as "/etc/hotplug/usb/usb-storage". Just to be safe I'm put in a test to exit if the $PRODUCT not equal to '4cb/100/100'. I can see this approach works great now, but I do wonder what happens when I get an rpm that installs scripts for my MP3 player, Camera, and external harddrive. I thought that was the idea behind the "usb.usermap" file and all the matching options. The way I had changed it the device driver would load as well as anything matching in the usb.usermap file. It allowed individual and multiple scripts per device. Just adding my 2 cents. Feel free to ignore it, I'm very happy it works and is a lot easier than I had originally thought. Keep up the great work. -------------------------------------------------------------- Robert E. Anderson email: rea@sr.unh.edu Systems Programmer phone: (603) 862-3489 UNH Research Computing Center fax: (603) 862-1761 -------------------------------------------------------------- _______________________________________________ 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