Track suspend/hibernate failures and exit accordingly.
authorVictor Lowther <victor.lowther@gmail.com>
Tue, 8 Dec 2009 01:02:35 +0000 (19:02 -0600)
committerVictor Lowther <victor.lowther@gmail.com>
Tue, 8 Dec 2009 01:02:35 +0000 (19:02 -0600)
commit09da44bedc97ddd75e77ed87b7a057dc21e01a38
treec534c5702766f19e841bdf259e8da271268c5e89
parent57ff1f997d6297557340057e9fdbb2f956b31aa0
Track suspend/hibernate failures and exit accordingly.

It turns out that echo whatever >/sys/power/state will fail if
transitioning to that state fails.  If transitioning to the
reuested power state fails, pm-action will return an error code
greater or equal than 128.
pm/module.d/tuxonice
pm/pm-functions.in
src/pm-action.in