Starting an rc file to set up netgraph.

This commit is contained in:
Tom Alexander
2022-10-29 17:45:06 -04:00
parent c6ed886f4c
commit 4e29c2e3d8
4 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/sh
# /usr/local/etc/rc.d/setup_netgraph
#
# REQUIRE: FILESYSTEM kld
# PROVIDE: setup_netgraph
# BEFORE: netif
. /etc/rc.subr
name=setup_netgraph
rcvar=${name}_enable
start_cmd="${name}_start"
stop_cmd="${name}_stop"
load_rc_config $name
setup_netgraph_start() {
/usr/local/bin/setup_netgraph start
}
setup_netgraph_stop() {
/usr/local/bin/setup_netgraph stop
}
run_rc_command "$1"