[lirc] Only disable in-kernel decode when using lirc interface
Jarod Wilson
jwilson at fedoraproject.org
Sun Mar 27 04:15:35 UTC 2011
commit f13c64e2db03dd7b4f6c33f4d7270854505be179
Author: Jarod Wilson <jarod at redhat.com>
Date: Sun Mar 27 00:15:28 2011 -0400
Only disable in-kernel decode when using lirc interface
Signed-off-by: Jarod Wilson <jarod at redhat.com>
lirc.init | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/lirc.init b/lirc.init
index a397f8b..c50842b 100755
--- a/lirc.init
+++ b/lirc.init
@@ -79,11 +79,13 @@ start() {
# we disable the in-kernel decoding when lircd is started up
# successfully
if [ $retval -eq 0 ]; then
- rcs=$(find -L /sys/class/rc/ -maxdepth 2 -name protocols 2> /dev/null)
- for rc in $rcs
- do
- echo lirc > ${rc}
- done
+ if [ $(echo "$LIRC_DEVICE" | grep -c /dev/lirc) -ge 1 ]; then
+ rcs=$(find -L /sys/class/rc/ -maxdepth 2 -name protocols 2> /dev/null)
+ for rc in $rcs
+ do
+ echo lirc > ${rc}
+ done
+ fi
fi
return $retval
More information about the scm-commits
mailing list