I dunno what state this is in, but I might want to keep it.
This commit is contained in:
Executable
+45
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user