From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sat, 15 Oct 2005 18:27:30 +0000 Subject: Re: udev and usb.agent Message-Id: <20051015182730.GB7625@vrfy.org> 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 Sat, Oct 15, 2005 at 04:14:29PM +1000, Greg Bell wrote: > > Hi Developers, > > On my FC4 system, hotplug calls /etc/hotplug/usb.agent (and therefore my > /etc/hotplug/usb/camera script). However, it doesn't run udev until > AFTER, so my /dev/sd?1 mapping to /dev/camera hasn't happened yet when my > camera script is running. > > What am I doing wrong? Is there a way to get hotplug to call udev to do > the device mapping BEFORE usb.agent gets called? The "camera script" is probably triggered by the usb device event, not the block device event. Use an explicit udev rule that matches the block device and the usb properties of the camera. The old agent crap should no longer be used. Btw: HAL which should be running on your box is expected to manage that in conjunction with your desktop session. Modern desktop setups don't need to fiddle around with device id's and scripts to make your camera just work. Kay ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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