Re: hotplugd and auto mount UI

2010-12-17 Thread Christopher Hilton
On Dec 11, 2010, at 8:46 AM, Jean-Francois wrote:

 Hello,

 Has someone already programmed any kind UI or GUI used with hotplugd for
auto
 mounting and user interface to eventually mount or unmount the device ?

 I am quite doing this for a friend, however if something already exists ...


I used to do this with amd. The one trick I recall is that you want to use
program mounts and specify the mount and unmount commands by hand. The problem
that I saw was that the ufs mounts assume that the disk is permanently mounted
in a cabinet so amd never times them out. Basically I let amd control a
directory: /hotplug and put the devices into it so I would find my usb
flashdrive at /hotplug/flashdrive The trick with amd is that any file
operation on the mount point will cause amd to do the mount on it's own. e.g.
$ ls -l /hotplug/flashdrive caused amd to mount my flashdrive. Lack of
activity on the directory triggers a timeout which unmounts the drive.
Althought I didn't do it this way, you could use a simple perl or python tk
script to pop up a directory box in your gui from hotplug... In my case my
flashdrive had my uber ssh keys on it plugging it in would trigger the action
needed to add my uber key to my ssh-agent.

-- Chris

Chris Hilton  e: chris /at/ vindaloo /dot/ com

All I was doing was trying to get home from work!
 -- Rosa Parks



hotplugd and auto mount UI

2010-12-11 Thread Jean-Francois
Hello,

Has someone already programmed any kind UI or GUI used with hotplugd for auto
mounting and user interface to eventually mount or unmount the device ?

I am quite doing this for a friend, however if something already exists ...

Thanks

Jean-Frangois