From owner-freebsd-questions@FreeBSD.ORG Sat Sep 24 16:19:56 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 167A2106566C for ; Sat, 24 Sep 2011 16:19:56 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from relay.pcl-ipout01.plus.net (relay.pcl-ipout01.plus.net [212.159.7.99]) by mx1.freebsd.org (Postfix) with ESMTP id 999AB8FC15 for ; Sat, 24 Sep 2011 16:19:55 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjAHACv7fU7Unw4T/2dsb2JhbABCmWOOOXiBUwEBBAF5BQsLNBJXiBECtxeHCwSHQpEyjBI Received: from outmx04.plus.net ([212.159.14.19]) by relay.pcl-ipout01.plus.net with ESMTP; 24 Sep 2011 16:50:38 +0100 Received: from [84.92.153.232] (helo=curlew.milibyte.co.uk) by outmx04.plus.net with esmtp (Exim) id 1R7UUv-0007gf-IG; Sat, 24 Sep 2011 16:50:37 +0100 Received: by curlew.milibyte.co.uk with local (Exim 4.76) (envelope-from ) id 1R7UUu-0000XP-3x; Sat, 24 Sep 2011 16:50:36 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Sat, 24 Sep 2011 16:50:35 +0100 User-Agent: KMail/1.9.10 References: <20110924100418.50edc7ea@atomizer> In-Reply-To: <20110924100418.50edc7ea@atomizer> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109241650.35939.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false Cc: Rod Person Subject: Re: Help with devd.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2011 16:19:56 -0000 On Saturday 24 September 2011, Rod Person wrote: > I'm trying to understand devd.conf to auto mount usb devices. For > example I have a usb drive that will show up as da1 so as a test I > just want to write something to syslog when it is plugged in. [snip] > Any help would be appreciated, thanks. This works for me: attach 10 { match "device-name" "umass[0-9]"; action "logger you plugged in some usb device"; }; -- Mike Clarke