#!/bin/sh # # $FreeBSD$ # # PROVIDE: lircd # REQUIRE: DAEMON # # Add the following line to /etc/rc.conf to enable lircd: # # lircd_enable="YES" # . %%RC_SUBR%% name="lircd" rcvar=`set_rcvar` load_rc_config ${name} : ${lircd_enable="NO"} : ${lircd_device="/dev/lirc0"} prefix=%%PREFIX%% 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"