3 # lircmd Linux Infrared Remote Control mouse daemon
6 # description: LIRC is a package that allows you to decode and send \
7 # infra-red signals of many (but not all) commonly used \
11 # pidfile: /var/run/lirc/lircmd.pid
12 # config: /etc/lirc/lircmd.conf
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 if [ ! -f /var/lock/subsys/lircmd ]; then
19 msg_starting "Linux Infrared Remote Control mouse daemon"
22 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/lircmd
24 msg_already_running "Linux Infrared Remote Control mouse daemon"
29 if [ -f /var/lock/subsys/lircmd ]; then
30 msg_stopping "Linux Infrared Remote Control mouse daemon"
32 rm -f /var/lock/subsys/lircmd >/dev/null 2>&1
34 msg_not_running "Linux Infrared Remote Control mouse daemon"
39 if [ -f /var/lock/subsys/lircmd ]; then
43 msg_not_running "Linux Infrared Remote Control mouse daemon"
49 # See how we were called.
65 if [ -f /var/lock/subsys/lircmd ]; then
66 msg_reloading "Linux Infrared Remote Control mouse daemon"
70 msg_not_running "Linux Infrared Remote Control mouse daemon" >&2
79 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"