linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* I don't want much...
@ 2004-07-24 21:34 David Greaves
  2004-07-24 21:59 ` Olivier Mehani
  0 siblings, 1 reply; 2+ messages in thread
From: David Greaves @ 2004-07-24 21:34 UTC (permalink / raw)
  To: linux-hotplug

Hi

This overview page:
  http://linux-hotplug.sourceforge.net/?selected=overview
Says that a "Starting an application" is a reasonable thing to want to do.

I just want to run a script.
A simple script.
That's it.
Why on earth is it so hard?

Hmm, maybe not the best tone to start with - but isn't hotplugging about 
making the user's life easier?
It's cool that it automatically loads my modules.
Now all I have to do is start a shell and type: mount -t vfat -o 
uidÚvid,gid=greaves,sync /dev/sda1 /mnt/lexar
Not exactly plug-and-play is it?

When I plug in my Lexar Jumpshot I want to mount the drive and rsync my 
piccies.
What happens?
I get a usb event
then a scsi-host event
then a scsi event
then a block event
and another block event
then a scsi-device event

Fine.
So I add a usermap tied to the usb vendor/product id (the 'right' place) 
and create a dummy module called lexar.script with a control script.
It runs - good.
At the wring time (ie before the scsi devices are registered) - bad.

Do I really have to hack into the generic scsi-device agent?


David



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id\x10040&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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-24 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-24 21:34 I don't want much David Greaves
2004-07-24 21:59 ` Olivier Mehani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).