2007-01-19 03:27:23 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# PROVIDE: lircd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
#
|
|
|
|
# Add the following line to /etc/rc.conf to enable lircd:
|
|
|
|
#
|
|
|
|
# lircd_enable="YES"
|
|
|
|
#
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2007-01-19 03:27:23 +01:00
|
|
|
|
|
|
|
name="lircd"
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=lircd_enable
|
2007-01-19 03:27:23 +01:00
|
|
|
|
|
|
|
load_rc_config ${name}
|
|
|
|
: ${lircd_enable="NO"}
|
|
|
|
: ${lircd_device="/dev/lirc0"}
|
|
|
|
|
2009-07-15 18:56:10 +02:00
|
|
|
procname=%%PREFIX%%/sbin/lircd
|
2011-02-26 23:11:54 +01:00
|
|
|
pidfile=/var/run/lirc/lircd.pid
|
2009-07-15 18:56:10 +02:00
|
|
|
lircd_config="%%PREFIX%%/etc/lircd.conf"
|
2007-01-19 03:27:23 +01:00
|
|
|
required_files=${lircd_config}
|
2009-07-15 18:56:10 +02:00
|
|
|
command="%%PREFIX%%/sbin/lircd"
|
2007-01-19 03:27:23 +01:00
|
|
|
command_args="-d ${lircd_device} ${lircd_config}"
|
|
|
|
|
|
|
|
run_rc_command "$1"
|