5 .
/etc
/conf.d
/lircd.conf
7 PID
=$
(pidof
-o %PPID
/usr
/sbin
/lircd
)
8 LIRCD_SYMLINKFILE
=/dev
/lircd
9 LIRCD_SOCKET
=/var
/run
/lirc
/lircd
12 stat_busy
"Starting LIRC Daemon"
13 [ ! -d /var
/run
/lirc
] && install -d /var
/run
/lirc
&>/dev
/null
14 rm -f $LIRCD_SOCKET && ln -s $LIRCD_SOCKET $LIRCD_SYMLINKFILE
19 [ -n "$LIRC_DRIVER" ] && LIRC_EXTRAOPTS
="-H $LIRC_DRIVER $LIRC_EXTRAOPTS"
21 if [ -n "$LIRC_DEVICE" ] ; then
22 eval /usr
/sbin
/lircd
-d "$LIRC_DEVICE" $LIRC_EXTRAOPTS $LIRC_CONFIGFILE
24 /usr
/sbin
/lircd
$LIRC_EXTRAOPTS $LIRC_CONFIGFILE
34 stat_busy
"Stopping LIRC Daemon"
35 rm -f $LIRCD_SYMLINKFILE
36 [ ! -z "$PID" ] && kill $PID &> /dev
/null
50 echo "usage: $0 start|stop|restart"