mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
29 lines
459 B
Bash
29 lines
459 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# 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"
|