From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Williams Date: Thu, 15 Nov 2001 20:48:34 +0000 Subject: Re: hotplug arch. and apps 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 scottf@med.unr.edu said: > Using a hotplug script (/etc/hotplug/usb/camera), we either set the > ownership of the device (/proc/bus/usb/001/003 for example) to that of > the locally logged in user in the case of a non-mass-storage camera, > or we mount the mass-storage camera to /camera0 and set ownership > again to the locally logged in user. I had a similar problem with a PROM programmer I built, and tackled it with the fxload that is now part of the hotplug CVS repository. Basically, I wrote a little script, called by a user map, that uses fxload to set the mode of the device to 0666 and create a link to the /proc/ device in /var/run so that an application can just poll for gflash.lnk. I also added REMOVER script support to remove the link when the device is disconnected. -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, steve at picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." _______________________________________________ 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