Only disable in-kernel decode when using lirc interface

Signed-off-by: Jarod Wilson <jarod@redhat.com>
epel8
Jarod Wilson 14 years ago
parent 3b104949eb
commit f13c64e2db

@ -79,11 +79,13 @@ start() {
# we disable the in-kernel decoding when lircd is started up # we disable the in-kernel decoding when lircd is started up
# successfully # successfully
if [ $retval -eq 0 ]; then if [ $retval -eq 0 ]; then
rcs=$(find -L /sys/class/rc/ -maxdepth 2 -name protocols 2> /dev/null) if [ $(echo "$LIRC_DEVICE" | grep -c /dev/lirc) -ge 1 ]; then
for rc in $rcs rcs=$(find -L /sys/class/rc/ -maxdepth 2 -name protocols 2> /dev/null)
do for rc in $rcs
echo lirc > ${rc} do
done echo lirc > ${rc}
done
fi
fi fi
return $retval return $retval

Loading…
Cancel
Save