[Bug 59695] Re: High frequency of load/unload cycles on some hard disks may shorten lifetime

Jakob Unterwurzacher jakobunt at gmail.com
Thu Jan 15 12:23:43 UTC 2009


There are two bugs:

One in power-funcs.sh :

if [ "$?" -eq 0 ]; then
                    STATE="AC";
elif [ "$?" -eq 1 ]; then

This is wrong because the first test [ "$?" -eq 0 ] will change $? .
We need to save $? to another variable before testing it. The attached patch does that.

** Attachment added: "power-funcs.patch"
   http://launchpadlibrarian.net/21236722/power-funcs.patch

-- 
High frequency of load/unload cycles on some hard disks may shorten lifetime
https://bugs.launchpad.net/bugs/59695
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux-meta in ubuntu.




More information about the kernel-bugs mailing list