contrib/lirc/lircd
Alan Mizrahi 37c55b1ff9 lirc: Adopted, updated to 0.8.2.
Added LIRC_DRIVER env var to build it non-interactively.
Added patch to select program name to irxevent.
Disabled static variables.
2008-04-24 11:10:23 -04:30

26 lines
361 B
Bash
Executable File

#!/bin/bash
#
# /etc/rc.d/lircd: start/stop/restart lirc daemon
#
case "$1" in
start)
/usr/sbin/lircd -p 666 /etc/lircd.conf
;;
stop)
if [ -f /var/run/lircd.pid ]; then
kill `cat /var/run/lircd.pid` && rm -f /var/run/lircd.pid
else
return 1
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac