From owner-freebsd-stable@FreeBSD.ORG Fri Jun 15 07:33:28 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5076106564A for ; Fri, 15 Jun 2012 07:33:28 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [212.17.241.230]) by mx1.freebsd.org (Postfix) with ESMTP id 650608FC08 for ; Fri, 15 Jun 2012 07:33:28 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id q5F7XBXm054695; Fri, 15 Jun 2012 09:33:27 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id q5F7XBOS054694; Fri, 15 Jun 2012 09:33:11 +0200 (CEST) (envelope-from olli) Date: Fri, 15 Jun 2012 09:33:11 +0200 (CEST) Message-Id: <201206150733.q5F7XBOS054694@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, kob6558@gmail.com In-Reply-To: X-Newsgroups: list.freebsd-stable User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (lurza.secnetix.de [127.0.0.1]); Fri, 15 Jun 2012 09:33:27 +0200 (CEST) Cc: Subject: Re: devd problem with 9-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 07:33:29 -0000 Kevin Oberman wrote: > Since updating my systems to 9-Stable, I am not getting my smartcard > reader attached when hot-plugged. > > > From devd.conf > attach 50 { > device-name "ugen[0-9]+"; > match "vendor" "0x0529"; > match "product" "0x0600"; > action "/usr/local/sbin/openct-control attach usb:529/600 usb /dev/$dev$ > }; > detach 50 { > device-name "ugen[0-9]+"; > match "vendor" "0x0529"; > match "product" "0x0600"; > action "/usr/bin/pkill -fx '/usr/local/sbin/ifdhandler -H -p [a-z0-9]+ $ > }; Maybe the device-name doesn't match. The ugen names contain a dot ("ugenX.Y"), so "ugen[0-9]+" won't match if the regular expression is anchored (the manual page isn't clear about that, unfortunately, but the examples suggest that it is indeed anchored). Besides, the /dev/ugen* names are only symlinks to the real entries in /dev/usb/X.Y.Z. It might be worth a try to just comment out the device-name lines. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "[...] one observation we can make here is that Python makes an excellent pseudocoding language, with the wonderful attribute that it can actually be executed." -- Bruce Eckel