netgraph startup

Abu Khaled khaled.abu at
Fri Jun 24 01:54:28 GMT 2005

On 6/23/05, Reid Linnemann <lreid at> wrote:
> I'm using netgraph to bridge a few interfaces on a -CURRENT system.
> I've used the example bridge script
> /usr/share/examples/netgraph/ether.bridge, and it works perfectly after
> setting the interface vars.
> However, there are no rc.d hooks (that I am aware of) that will kick off
> netgraph scripts on system boot, forcing me to manually run the netgraph
> script at each reboot. I'm sure I could hack the script to give it
> rcorder keywords and handlers for rcng arguments, but that seems to be
> an overworked solution. I'm curious, how have other netgraph users have
> solved this problem?

Why don't you start your script from /etc/rc.local. I use rc.local to
start many scripts for custom commands/daemons I need to be ready once
the system (re)starts.

# ee /etc/rc.local
<path to script>/

Kind regards
Abu Khaled

More information about the freebsd-questions mailing list