I dunno what state this is in, but I might want to keep it.

This commit is contained in:
2026-09-02 05:55:59 -04:00
parent 6b02d9d58e
commit 0e27fd9cd5
10 changed files with 1137 additions and 0 deletions
Executable
+45
View File
@@ -0,0 +1,45 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: fib_setup
# BEFORE: sysctl
#
. /etc/rc.subr
name="fib_setup"
desc="Calculate the fib count"
start_cmd='fib_setup_start'
stop_cmd='fib_setup_stop'
rcvar='fib_setup_enable'
load_rc_config 'fib_setup'
[ -z "$fib_setup_enable" ] && fib_setup_enable='NO'
. /etc/router-conf/pf-framework.subr
fib_setup_start()
{
echo "Running fib_setup"
fib_count=$(( ${max_fib} + 1 ))
cp ${router_conf_dir}/sysctl.conf ${router_conf_dir}/gen/
echo "net.fibs=${fib_count}" >> ${router_conf_dir}/gen/sysctl.conf
}
fib_setup_stop()
{
}
################ Epilogue
run_rc_command "$1"
# vim: ft=bash