[Pkg-acpi-devel] Bug#805865: Typo in powerbtn.sh

Maxim Reznik reznikmm at gmail.com
Mon Nov 23 11:47:13 UTC 2015

Package: acpid

Version: 1:2.0.25-1

There are next lines in powerbtn.sh

PMS="$PMS guidance-power-manager.py dalston-power-applet"
if pidof x $PMS > /dev/null; then

It's obvious last line should be "if pidof -x $PMS..." because
$PMS contains guidance-power-manager.py which is a script
and -x option of pidof means

      -x     Scripts  too  -  this  causes  the  program  to also return
process id's of shells running the named scripts.

Somebody missed dash('-') before 'x'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20151123/f0baab86/attachment.html>

More information about the Pkg-acpi-devel mailing list