diff options
Diffstat (limited to 'src')
-rw-r--r-- | 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 $? |