On Fri, Apr 08, 2005 at 03:06:12PM +0200, Jakub Turski wrote: > How about such feature: when new device is found, vendor and model are > checked against a table in /etc, and device is mounted in a directory > specified in this table. If not found, device is mounted in some > "generic" directory, just like it is now. > > Having this, I could have my camera mounted on /mnt/minolta, my palm on > /mnt/palm, and everything else on /mnt/usbstorage. I hope it is not > hard to implement, as there's already symlink created in /var...
Hi Jakub, Thank you for your suggestion. The existing symlink feature is supposed to solve this problem, i.e. if you create a symlink /mnt/minolta pointing to /var/run/usbmount/Minolta (or whatever the model name of your camera is), you can use /mnt/minolta to access your camera while it is mounted. The current version (0.0.10) also runs hook scripts when a device is mounted or unmounted, so if you prefer, you can create a symlink in /mnt pointing to to mountpoint directly. Please have a look at /etc/usbmount/mount.d/00_create_model_symlink and /etc/usbmount/umount.d/00_remove_model_symlink to see how they manage the symlink in /var/run/usbmount. The vendor and model name are available to the scripts in /etc/usbmount/mount.d in environment variables; see the README file for details. Please let me know if this does what you want. Otherwise, please tell me why a symlink to the mountpoint (as opposed to specifying the mountpoint directly) doesn't do what you want. Thanks, Martin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]