Fedora 9 - Found bug on ACPI actions related with power off button

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I found a little bug on acpi script that should check for the presence
of kpowersave or gnome-power-manager, before to issue the shutdown
command.

The script, located on /etc/acpi/action on fedora 9 use the awk command.

This is the peace of script that I think bugged

-- start code --
# Check that there is a power manager, otherwise shut down.
[ "$uid_session" ] &&                                      
ps axo uid,cmd | \                                         
awk '                                                      
    $1 == '$uid_session' &&                                
        ($2 == "gnome-power-manager" || $2 == "kpowersave") \
                { found = 1; exit }                          
    END { exit !found }                                      
' ||                                                         
  shutdown -h now
-- end code --

On my pc I have the shutdown .h now everytime I push the power button,
even if I configure it by kpowersave.

So I checked the 
 ps axo uid,cmd | grep kpowersave 
and I found 
     0 /usr/bin/kpowersave

so the awk command if everytime false
I would like if someone can check it and can confirm it's a bug.
I don't know well awk so I can had a mistake

Bye
 Ambrogio


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux