[Bug 698208] Re: lirc init script doesn't disable other methods on natty

Bryce Harrington 698208 at bugs.launchpad.net
Mon Apr 4 19:19:56 UTC 2011


[Unmarking old patch as a solution as per previous comments.  Unsubbing
sponsors since correct patch is already merged onto the packaging bzr
branch.]

** Changed in: lirc (Ubuntu)
       Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/698208

Title:
  lirc init script doesn't disable other methods on natty

Status in “lirc” package in Ubuntu:
  Confirmed

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



More information about the Ubuntu-sponsors mailing list