opnsense-ports/sysutils/lcdproc/files/lcdexec.in
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

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"