Package: pbbuttonsd
Version: 0.7.9-2
Severity: minor
Tags: patch

Hi!

The init script currently does not check whether the system actually
has a PMU (which is not the case on CUDA systems). We got this report
from an Ubuntu user, see [1].

Thanks for considering,

Martin

[1] https://launchpad.net/bugs/47419

Trivial patch:

--- pbbuttonsd-0.7.9/debian/pbbuttonsd.init
+++ pbbuttonsd-0.7.9/debian/pbbuttonsd.init
@@ -17,6 +17,9 @@
 # X-UnitedLinux-Default-Enabled: yes
 ### END INIT INFO

+# Exit if this system does not have a PMU chip.
+[ -e /proc/pmu ] || exit 0
+
 . /lib/lsb/init-functions

 PATH=/sbin:/bin:/usr/sbin:/usr/bin

-- 
Martin Pitt              http://www.piware.de
Ubuntu Developer   http://www.ubuntulinux.org
Debian Developer        http://www.debian.org

Attachment: signature.asc
Description: Digital signature

Reply via email to