(unknown charset) Re: usb devices and devfs settings

From: (unknown charset) Dima Dorfman <dima_at_trit.org>
Date: Sat, 14 Feb 2004 00:28:57 +0000
Dag-Erling Sm?rgrav <des_at_des.no> wrote:
> Guido van Rooij <guido_at_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.
Received on Fri Feb 13 2004 - 15:47:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:43 UTC