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.
26 lines
418 B
Bash
26 lines
418 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: lcdexec
|
|
# REQUIRE: LCDd
|
|
#
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
|
# SET THEM IN THE /etc/rc.conf FILE
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="lcdexec"
|
|
rcvar=lcdexec_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${lcdexec_enable="NO"}
|
|
: ${lcdexec_conf="%%PREFIX%%/etc/lcdexec.conf"}
|
|
: ${lcdexec_flags="-c ${lcdexec_conf}"}
|
|
|
|
required_files=${lcdexec_conf}
|
|
command="%%PREFIX%%/bin/lcdexec"
|
|
|
|
run_rc_command "$1"
|