Thanks for your quick response. You are right, there might be spaces at the
start of the line and before the curly brace, so I changed the regex to:
'^[[:space:]]*/dev[-_/[:alnum:]]*[-_[:alnum:]]+[[:space:]]+{'
I also fixed the return-values and that _very_ stupid "echo $HDPARM" error...
Sorry :)
** Attachment added: "fixed patch"
http://launchpadlibrarian.net/22282244/90-hdparm.sh-fixed.diff
--
acpi-support's 90-hdparm.sh overwrites hdparm.conf's apm settings
https://bugs.launchpad.net/bugs/318980
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs