The script above wasn't working for me under Ubuntu 12.04.2 LTS, so I
created a new one that does.
Enjoy!
** Attachment added: power.d preload script
https://bugs.launchpad.net/ubuntu/+source/preload/+bug/481861/+attachment/3617231/+files/preload
--
You received this bug notification
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: preload (Ubuntu)
Status: New = Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/481861
Title:
** Attachment added: Dependencies.txt
http://launchpadlibrarian.net/35641708/Dependencies.txt
--
make preload sleep when battery operated
https://bugs.launchpad.net/bugs/481861
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
By using the pm-utils package. preload could add this feature just by
adding the attached script into the /etc/pm/power.d file directory.
** Attachment added: /etc/pm/power.d/preload
http://launchpadlibrarian.net/35650660/preload
--
make preload sleep when battery operated