forked from Lainports/freebsd-ports
- 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
31 lines
521 B
Bash
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"
|