mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
83eb2c3700
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
641 B
Bash
29 lines
641 B
Bash
#!/bin/sh
|
|
#
|
|
# PROVIDE: mohawk
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable mohawk:
|
|
#
|
|
# mohawk_enable (bool): Set it to "YES" to enable mohawk
|
|
# Default is "NO".
|
|
# mohawk_conf (path): Set full path to config file.
|
|
# Default is "%%PREFIX%%/etc/mohawk.conf".
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="mohawk"
|
|
rcvar=mohawk_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${mohawk_enable="NO"}
|
|
: ${mohawk_conf="%%PREFIX%%/etc/mohawk.conf"}
|
|
|
|
command=%%PREFIX%%/sbin/mohawk
|
|
command_args="-c ${mohawk_conf}"
|
|
required_files=${mohawk_conf}
|
|
|
|
run_rc_command "$1"
|