From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 16:47:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ADB816A4CE for ; Fri, 13 Feb 2004 16:47:57 -0800 (PST) Received: from catalina.nimone.com (pat1.gonim.com [66.161.18.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03C9843D1D for ; Fri, 13 Feb 2004 16:47:57 -0800 (PST) (envelope-from dima@trit.org) Received: from ajax.nimone.com (ajax.nimone.com [192.168.168.100]) by catalina.nimone.com (Postfix) with ESMTP id 9691936C81; Sat, 14 Feb 2004 00:47:56 +0000 (UTC) Received: (from dima@localhost) by ajax.nimone.com (8.11.6+Sun/8.10.2) id i1E0SvT07445; Sat, 14 Feb 2004 00:28:57 GMT X-Authentication-Warning: ajax.nimone.com: dima set sender to dima@trit.org using -f Date: Sat, 14 Feb 2004 00:28:57 +0000 From: Dima Dorfman To: Dag-Erling =?unknown-8bit?Q?Sm=F8rgrav?= Message-ID: <20040214002857.GB7396@trit.org> References: <20040213113134.GA11021@gvr.gvr.org> <20040213144338.GA13380@gvr.gvr.org> <20040213154946.GA14227@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-PGP-Key: 69FAE582 (http://www.trit.org/~dima/dima.asc) X-PGP-Fingerprint: B340 8338 7DA3 4D61 7632 098E 0730 055B 69FA E582 X-Mailman-Approved-At: Sat, 14 Feb 2004 05:14:15 -0800 cc: current@freebsd.org Subject: Re: usb devices and devfs settings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 14 Feb 2004 00:47:57 -0000 Dag-Erling Sm?rgrav wrote: > Guido van Rooij writes: > > IMHO all that is needed is a rewrite of devfs.conf to the ruleset approach > > and rewrite /etc/rc.d/devfs to apply that ruleset. Correct? > > There is already code in /etc/rc.subr and /etc/rc.d/devfs to load and > apply rulesets, but it is undocumented. > > You should probably try to add an option to devfs(8) to have it read > an entire ruleset from a file I've been out of the loop for a while, but devfs(8) has always been able to read a ruleset from a file: devfs rule -s 10 add - < yourfile This can't be used to read *multiple* rulesets from one file, but I think it's better to have one file per ruleset anyway. Non-"add" commands might need their own syntax, though. > (like ipfw does); ipfw(8) doesn't actually read from a file; rc.firewall calls ${fwcmd} explicitly for each rule. devfs(8) easily supports this model. Dima.