From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert Kennedy" Date: Tue, 17 Jan 2006 17:27:39 +0000 Subject: Re: hotplug not calling script 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 It really depends on the hotplug shell script. Depending on the distro, it could look in /etc/hotplug and its the subdirectories or /etc/hotplug.d/ and its subdirectories. Note that hotplug has been deprecated in the later versions of udev. But if you need to load any special firmware or run special scripts during hotplugging, you will need to write your own udev rules. (I believe that udev no longer uses the usb.usermap. Instaed udev relies on udev rules to provide this function. But someone please correct me if I am wrong). I am doing that now since I have switched to udev 079 and the 2.615 kernel. I am writing some udev rules to load firmware into my old CD Writer using fxload. I am glad that I am NOT using the hotplug daemon. I always found the hotplug daemon slow. Rob >From: "Brandon Metcalf" >To: Scott James Remnant >CC: linux-hotplug-devel@lists.sourceforge.net >Subject: Re: hotplug not calling script >Date: Mon, 16 Jan 2006 13:33:20 -0600 (CST) > >s = scott@ubuntu.com writes: > > s> On Mon, 2006-01-16 at 09:18 -0600, Brandon Metcalf wrote: > > s> > /etc/hotplug/usb.usermap contains: > s> > > s> > $ cat /etc/hotplug/usb.usermap > s> > # usb module match_flags idVendor idProduct bcdDevice_lo >bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass >bInterfaceSubClass bInterfaceProtocol driver_info > s> > setg2 0x0000 0x04a9 0x3055 0x0000 0x0000 0x00 0x00 >0x00 0x00 0x00 0x00 0x00000000 > s> ^^^^^^ > s> needs to be 0x0003 > > >I finally realized that /sbin/hotplug is just a shell script and >noticed it's using /etc/hotplug.d for the default directory. So, I >copied my setg2 script to /etc/hotplug.d/usb/setg2.hotplug and now >everything is working. > >So, my next question is, are the contents of /etc/hotplug even being >used? The only thing I can think of is I might of downgraded hotplug >when I got rid of a bunch of testing and unstable packages on my >Debian box and the older version uses /etc/hotplug.d/ which would >explain why it quit working for my camera. > >-- >Brandon > > >------------------------------------------------------- >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 ------------------------------------------------------- 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://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ 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