1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

30 lines
506 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: lircd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable lircd:
#
# lircd_enable="YES"
#
. /etc/rc.subr
name="lircd"
rcvar=`set_rcvar`
load_rc_config ${name}
: ${lircd_enable="NO"}
: ${lircd_device="/dev/lirc0"}
procname=%%PREFIX%%/sbin/lircd
pidfile=/var/run/lircd.pid
lircd_config="%%PREFIX%%/etc/lircd.conf"
required_files=${lircd_config}
command="%%PREFIX%%/sbin/lircd"
command_args="-d ${lircd_device} ${lircd_config}"
run_rc_command "$1"