GNOME 2.12 do this for you, if you put yourself in the plugdev group.
It just works.

Canek

On 2/5/06, Neil Bothwick <[EMAIL PROTECTED]> wrote:
> On Sun, 5 Feb 2006 17:09:43 -0500, James Colby wrote:
>
> > I was wondering if anybody knew of a package or a method that I could
> > use to detect when a USB mass storage device is attached to my PC.
> > What I would like to be able to do is to write a small script that
> > would mount my USB mass storage device, sync up a directory, and then
> > unmount the device everytime I plug my USB drive into the computer.
>
> Udev will take care of this. all you need is a udev rule that matches the
> particular device and calls a script that carries out the actions you
> want. See http://www.reactivated.net/udevrules.php for plenty on writing
> udev rules.
>
>
> --
> Neil Bothwick
>
> Newsflash! Explosion at M$ beta testsite - Infinite number of monkeys
> killed.
>
>
>


--
Canek Peláez Valdés
Facultad de Ciencias, UNAM

-- 
gentoo-user@gentoo.org mailing list

Reply via email to