usb devices and devfs settings
Dima Dorfman
dima at trit.org
Fri Feb 13 16:47:57 PST 2004
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.
More information about the freebsd-current
mailing list