Re: USB memory sticks
From: suttie (sutter_peter_at_hotmail.com)
Date: Sun, 26 Dec 2004 16:06:16 +0800
Thanks for your answer.
I might play around with hotplug. However, that will not solve my problem.
The problem is that when the application is starting, the hotplug devices
are still unknown to the system.
The startup should work like this:
If the memory stick is plugged in at startup, start the application using
the configuration files on the memory stick. If no memory stick is found at
startup, use the values of the hard disk.
And no, if somebody sticks a memory stick into the system after the
application has started, i.e. a running system, I do not want the device
being automatically mounted, I still want to continue to use the data
present on the mount point.
> |I have set hotplug_do_mount to no, because I need a defined mountpoint.
> |With hotplug_do_mount set to yes, the mount point varies from incarnation
> |to incarnation.
> It seems to me that you should actually take advantage of hotplug to
> catch device up events from the memory stick, which would have unique
> vendor and device ids. You can then call a handwritten override script
> to mount the device where you want it, whereas all other device ids go
> through the default mount script. You'd have to read the hotplug
> documentation see where the script hooks are.