← Back to team overview

mythbuntu-bugs team mailing list archive

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

 

Accepted lirc into natty-proposed, the package will build now and be
available in a few hours. Please test and give feedback here. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Thank you in advance!

** Also affects: lirc (Ubuntu Natty)
   Importance: Undecided
       Status: Confirmed

** Also affects: lirc (Ubuntu Oneiric)
   Importance: Undecided
       Status: New

** Changed in: lirc (Ubuntu Natty)
       Status: Confirmed => Fix Committed

** Tags added: verification-needed

-- 
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:
  Fix Committed
Status in “lirc” source package in Natty:
  Fix Committed
Status in “lirc” source package in Oneiric:
  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


References