This patch clones pm-main functionality in pm-action
---
src/pm-action.in | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/pm-action.in b/src/pm-action.in
index b9b32dd..b1a8bf6 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -121,6 +121,10 @@ esac
export PM_CMDLINE="$@"
-pm_main "$(echo $ACTION | tr - _)" "$REVERSE"
+take_suspend_lock || exit 1
+trap remove_suspend_lock 0
+init_logfile "${PM_LOGFILE}"
+rm -f "${INHIBIT}"
+run_hooks sleep "$(echo $ACTION | tr - _)" reverse "$REVERSE"
exit $?
--
1.5.3.8
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils