On Thu, 14 Feb 2008, Brian Tuchten wrote:

> 
> > Why don't you just write a udev rule to run the "eject" program when it
> > sees the Novatel device has been plugged in?
> >
> > Alan Stern
> 
> We could, but we don't use udev or eject.  If we did then we would need to 
> wait for the device to 
> fully come up, get mounted, and then eject it, then wait for hotplug to see 
> the new device. On a 486 
> 100mhz platform needing to access a modem for data, that can be an eternity 
> to wait =).

The situation probably isn't as bad as you make it out to be.  
(Although not using udev does make it difficult to utilize a udev 
script... but a hotplug script should work just as well.)

I don't know what you mean by "wait for the device to fully come up", 
but wouldn't you have to wait for that in any case?  After all, how can 
your patch eject it or do anything else if isn't fully up?

You don't have to wait for it to be mounted; the "eject" program is 
perfectly happy to eject an unmounted CD.  It will even eject an audio 
CD.

And don't you have to wait for hotplug to see the new device even with
your patch installed?

Finally, these delays are incurred only once, when the device is first 
plugged in.  Since plugging in a device is a manual operation, a short 
delay (a second or two) shouldn't matter much.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to