From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1F60Lp-0005eH-0r for garchives@archives.gentoo.org; Mon, 06 Feb 2006 06:59:53 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k166wTMk026052; Mon, 6 Feb 2006 06:58:29 GMT Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k166sWbP010659 for ; Mon, 6 Feb 2006 06:54:33 GMT Received: by xproxy.gmail.com with SMTP id s6so743132wxc for ; Sun, 05 Feb 2006 22:54:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZyJnhVQf2B6nLperR2sE0DUOWsBuqZdVs2me1TzRTnqSYi/yrFVaTkKHe1wvK12oUrNU9+Q6GONleHxXUnbxJdrxWj/xcQuYYieVXslQfh3mFN/iqsttgEEyuZNLA2QO2jF/ee/6nvZ9ifYVK5UEUhMbkYmVdNAKl+xyg7G1dbw= Received: by 10.70.44.13 with SMTP id r13mr5524550wxr; Sun, 05 Feb 2006 22:54:53 -0800 (PST) Received: by 10.70.57.6 with HTTP; Sun, 5 Feb 2006 22:54:53 -0800 (PST) Message-ID: Date: Mon, 6 Feb 2006 00:54:53 -0600 From: =?ISO-8859-1?Q?Canek_Pel=E1ez?= To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Detecting when a USB device is attached In-Reply-To: <20060205234011.4970669e@hactar.digimed.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <20060205234011.4970669e@hactar.digimed.co.uk> X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k166sWbP010659 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k166wTN3026052 X-Archives-Salt: 90100019-be84-4a85-b166-ee0589c50cd9 X-Archives-Hash: a306e7406308c8bfe8e4bd6dafef2e01 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 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 t= he > particular device and calls a script that carries out the actions you > want. See http://www.reactivated.net/udevrules.php for plenty on writin= g > udev rules. > > > -- > Neil Bothwick > > Newsflash! Explosion at M$ beta testsite - Infinite number of monkeys > killed. > > > -- Canek Pel=E1ez Vald=E9s Facultad de Ciencias, UNAM --=20 gentoo-user@gentoo.org mailing list