mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #03889
[Bug 698208] [NEW] lirc init script doesn't disable other methods on natty
Public bug reported:
Binary package hint: lirc
In natty the sysfs interface has change a bit so there's no longer a devices/virtual/rc.
The following patch seems to solve it!
diff --git a/etc/init.d/lirc b/etc/init.d/lirc
index b3c9266..620d2e1 100755
--- a/etc/init.d/lirc
+++ b/etc/init.d/lirc
@@ -93,8 +93,8 @@ in_kernel_support() {
else
action="-"
fi
- if [ -d /sys/devices/virtual/rc ]; then
- for file in `find /sys/devices/virtual/rc/ -name protocols`; do
+ if [ -d /sys/class/rc ]; then
+ for file in `find /sys/class/rc/*/ -name protocols`; do
for protocol in rc5 nec rc6 jvc sony; do
echo "${action}${protocol}" > $file
done
** Affects: lirc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to lirc in ubuntu.
https://bugs.launchpad.net/bugs/698208
Title:
lirc init script doesn't disable other methods on natty
Status in “lirc” package in Ubuntu:
New
Bug description:
Binary package hint: lirc
In natty the sysfs interface has change a bit so there's no longer a devices/virtual/rc.
The following patch seems to solve it!
diff --git a/etc/init.d/lirc b/etc/init.d/lirc
index b3c9266..620d2e1 100755
--- a/etc/init.d/lirc
+++ b/etc/init.d/lirc
@@ -93,8 +93,8 @@ in_kernel_support() {
else
action="-"
fi
- if [ -d /sys/devices/virtual/rc ]; then
- for file in `find /sys/devices/virtual/rc/ -name protocols`; do
+ if [ -d /sys/class/rc ]; then
+ for file in `find /sys/class/rc/*/ -name protocols`; do
for protocol in rc5 nec rc6 jvc sony; do
echo "${action}${protocol}" > $file
done
Follow ups
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Martin Pitt, 2011-05-02
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Launchpad Bug Tracker, 2011-05-02
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Clint Byrum, 2011-04-27
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Mario Limonciello, 2011-04-27
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Launchpad Bug Tracker, 2011-04-26
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Martin Pitt, 2011-04-26
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Bryce Harrington, 2011-04-04
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Michael Vogt, 2011-03-25
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Launchpad Bug Tracker, 2011-03-24
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Ernst Sjöstrand, 2011-03-24
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Launchpad Bug Tracker, 2011-03-24
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Michael Vogt, 2011-03-24
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Scott Moser, 2011-03-18
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Launchpad Bug Tracker, 2011-03-18
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Hock, 2011-03-01
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Ernst Sjöstrand, 2011-02-09
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Brian Murray, 2011-01-07
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Ernst Sjöstrand, 2011-01-06
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Launchpad Bug Tracker, 2011-01-06
-
[Bug 698208] Re: lirc init script doesn't disable other methods on natty
From: Ernst Sjöstrand, 2011-01-06
-
[Bug 698208] [NEW] lirc init script doesn't disable other methods on natty
From: Ernst Sjöstrand, 2011-01-06
References