Date: Sat, 14 Feb 2004 00:28:57 +0000 From: Dima Dorfman <dima@trit.org> To: Dag-Erling =?unknown-8bit?Q?Sm=F8rgrav?= <des@des.no> Cc: current@freebsd.org Subject: Re: usb devices and devfs settings Message-ID: <20040214002857.GB7396@trit.org> In-Reply-To: <xzp1xozhsx4.fsf@dwp.des.no> References: <20040213113134.GA11021@gvr.gvr.org> <xzpn07nawqu.fsf@dwp.des.no> <20040213144338.GA13380@gvr.gvr.org> <xzpad3nhtfv.fsf@dwp.des.no> <20040213154946.GA14227@gvr.gvr.org> <xzp1xozhsx4.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Sm?rgrav <des@des.no> wrote: > Guido van Rooij <guido@gvr.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040214002857.GB7396>