freebsd-ports/comms/lirc/files/lircd.sh.in
Alexander Nedotsukov 4d529a51ea - Update to 0.8.0
- Hack configure so produced daemon binary is ready to use
  with third party kernel drivers.
- Make libirman support optional.
- Move daemon communication sockets under /var/run/lirc.
- Add startup script.
- Use bzip2.
- Minor cleanups.

Approved by:	maintaner
2007-01-19 02:27:23 +00:00

31 lines
521 B
Bash

#!/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"