From owner-freebsd-current@FreeBSD.ORG Sun Oct 25 08:02:58 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29EF9106568F for ; Sun, 25 Oct 2009 08:02:58 +0000 (UTC) (envelope-from sziszi@bsd.hu) Received: from mail.rubicom.hu (mail.rubicom.hu [89.147.80.28]) by mx1.freebsd.org (Postfix) with ESMTP id CF6D58FC0A for ; Sun, 25 Oct 2009 08:02:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=mail.rubicom.hu) by mail.rubicom.hu with smtp (Exim 4.63) (envelope-from ) id 1N1y3z-0002bX-Q1 for freebsd-current@freebsd.org; Sun, 25 Oct 2009 09:02:55 +0100 Received: from ip59935289.rubicom.hu ([89.147.82.137] helo=baranyfelhocske.buza.adamsfamily.xx) by mail.rubicom.hu with esmtp (Exim 4.63) (envelope-from ) id 1N1y3z-0002bO-J9 for freebsd-current@freebsd.org; Sun, 25 Oct 2009 09:02:55 +0100 Received: from baranyfelhocske.buza.adamsfamily.xx (localhost [127.0.0.1]) by baranyfelhocske.buza.adamsfamily.xx (8.14.3/8.14.3) with ESMTP id n9P92tpK002686 for ; Sun, 25 Oct 2009 10:02:55 +0100 (CET) (envelope-from sziszi@bsd.hu) Received: (from sziszi@localhost) by baranyfelhocske.buza.adamsfamily.xx (8.14.3/8.14.3/Submit) id n9P92tDn002685 for freebsd-current@freebsd.org; Sun, 25 Oct 2009 10:02:55 +0100 (CET) (envelope-from sziszi@bsd.hu) X-Authentication-Warning: baranyfelhocske.buza.adamsfamily.xx: sziszi set sender to sziszi@bsd.hu using -f Date: Sun, 25 Oct 2009 10:02:55 +0100 From: Szilveszter Adam To: freebsd-current@freebsd.org Message-ID: <20091025090255.GA1999@baranyfelhocske.buza.adamsfamily.xx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: Creating /dev links to dynamic devices X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Oct 2009 08:02:58 -0000 On Sat, Oct 24, 2009 at 09:52:30PM -0600, Warren Block wrote: > > In this case, so I can run scanbuttond on creation of uscanner0. Yes, > that could be done on detection of the vendor and product IDs and using > the ugen device for this example. > > But it seems to show that either the ability to dynamically create > "static device links" isn't there, or I just haven't found it yet. Looks like you are right. The creation of links as specified in devfs.conf is handled by custom code in /etc/rc.d/devfs, it cannot be specified as the "action" part of a devfs rule at this time. Your best bet is to use devd.conf, there you have more freedom (but you have already hinted at this yourself) -- Regards: Szilveszter ADAM Budapest Hungary