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 1F64Zs-0000mx-TL for garchives@archives.gentoo.org; Mon, 06 Feb 2006 11:30:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k16BTHSY017096; Mon, 6 Feb 2006 11:29:17 GMT Received: from asia.telenet-ops.be (asia.telenet-ops.be [195.130.137.74]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k16BNgsf022283 for ; Mon, 6 Feb 2006 11:23:45 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by asia.telenet-ops.be (Postfix) with SMTP id 132ED382B8 for ; Mon, 6 Feb 2006 12:24:05 +0100 (CET) Received: from yakima.mine.nu (d51536023.access.telenet.be [81.83.96.35]) by asia.telenet-ops.be (Postfix) with ESMTP id 01068380CF for ; Mon, 6 Feb 2006 12:24:05 +0100 (CET) Received: by yakima.mine.nu (Postfix, from userid 1000) id B22D4210159; Mon, 6 Feb 2006 12:24:04 +0100 (CET) From: Jan Callewaert To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Detecting when a USB device is attached Date: Mon, 6 Feb 2006 12:24:00 +0100 User-Agent: KMail/1.9.1 References: <20060205234011.4970669e@hactar.digimed.co.uk> In-Reply-To: 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: multipart/signed; boundary="nextPart1752513.ZRu9fRjxnE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602061224.04254.jan.callewaert@gmail.com> X-Archives-Salt: ed4cccbe-b909-4d1c-b0d7-b1a2475a0ea6 X-Archives-Hash: 3b038f3e6169ff058cfffe7c299f6c8a --nextPart1752513.ZRu9fRjxnE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Op maandag 6 februari 2006 07:54, schreef Canek Pel=E1ez: > GNOME 2.12 do this for you, if you put yourself in the plugdev group. > It just works. > > Canek > Just like KDE 3.5 Jan > 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 writing > > udev rules. > > > > > > -- > > Neil Bothwick > > > > Newsflash! Explosion at M$ beta testsite - Infinite number of monkeys > > killed. > > -- > Canek Pel=E1ez Vald=E9s > Facultad de Ciencias, UNAM --nextPart1752513.ZRu9fRjxnE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBD5zHU371OTNRHOf0RAmuIAJ9zxDKcG428LncBJHPLIWmP6ZzlHwCdFdFa Ff7rFiGB7+AG8pv6bIwGzXg= =Kxit -----END PGP SIGNATURE----- --nextPart1752513.ZRu9fRjxnE-- -- gentoo-user@gentoo.org mailing list