37c55b1ff9
Added LIRC_DRIVER env var to build it non-interactively. Added patch to select program name to irxevent. Disabled static variables.
26 lines
361 B
Bash
Executable File
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
|