The other on in 90-hdparm.sh : if [ $STATE = "BATTERY" ] ; then
causes a syntax error when $STATE is empty (it is empty when on_ac_power didn't return either 0 or 1). We need to quote $STATE. The attached patch does that. ** Attachment added: "90-hdparm.sh.patch" http://launchpadlibrarian.net/21236810/90-hdparm.sh.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 Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs