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 1F5sG2-0005m6-5o for garchives@archives.gentoo.org; Sun, 05 Feb 2006 22:21:22 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k15MIvJK009969; Sun, 5 Feb 2006 22:18:57 GMT Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.205]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k15M9O58032279 for ; Sun, 5 Feb 2006 22:09:24 GMT Received: by uproxy.gmail.com with SMTP id c2so591794ugf for ; Sun, 05 Feb 2006 14:09:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MtWptghEh0DK4peAvLlg89nrHui2y9XiG+5FM/WQORKSZyAKZuen7HXzU6Oisjsj4P/NFSS+oyiWgAxnwgSIhXoECRQQ/ModLbO+ilZPE7Oy/HIQyrp5qdYpBcQ+QubaPJmdkimY8YazimUkDek0J1zqAzydx8LmWV+ctAC43+Y= Received: by 10.66.245.1 with SMTP id s1mr1892007ugh; Sun, 05 Feb 2006 14:09:43 -0800 (PST) Received: by 10.66.223.10 with HTTP; Sun, 5 Feb 2006 14:09:43 -0800 (PST) Message-ID: Date: Sun, 5 Feb 2006 17:09:43 -0500 From: James Colby To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Detecting when a USB device is attached 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k15M9O58032279 X-Archives-Salt: 912e66f9-9fe2-4bb5-9166-1f931c564eaf X-Archives-Hash: fb15e27eea6c48395b6d3505a948634a List members - 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. I know this isn't exactly a gentoo question, but my PC is running gentoo linux so I thought that I would try to ask here. Thanks for any suggestion that you might have. Warm Regards, James -- gentoo-user@gentoo.org mailing list