mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 08:41:51 -04:00
27 lines
445 B
Bash
27 lines
445 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: rotorouter
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following line to /etc/rc.conf[.local] to enable rotorouter:
|
|
#
|
|
# rotorouter_enable="YES"
|
|
#
|
|
# See rotorouter(8) for flags.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=rotorouter
|
|
rcvar=rotorouter_enable
|
|
|
|
command=%%PREFIX%%/sbin/${name}
|
|
command_args='&'
|
|
|
|
load_rc_config $name
|
|
|
|
: ${rotorouter_enable-"NO"}
|
|
: ${rotorouter_flags-"-h %%PREFIX%%/etc/rotorouter.conf"}
|
|
|
|
run_rc_command "$1"
|