diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-06-20 20:50:18 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-06-20 20:50:18 -0500 |
commit | 965ff9c155d0151921514551881db4e6d499c214 (patch) | |
tree | 6ff47491049422b3a8d0f0ce66aa86fa37e8d5b7 | |
parent | 153cc173c901761bc87b44759f6ce9a46de04da7 (diff) |
If suspend has already been inhibited, don't run more hooks.
-rw-r--r-- | pm/pm-functions.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in index ad4676d..9c1c297 100644 --- a/pm/pm-functions.in +++ b/pm/pm-functions.in @@ -174,7 +174,7 @@ run_hooks() { [ "$base" \> "$LAST_HOOK" ] && continue # if we have already inhibited suspend/resume, # don't run any more hooks. - [ ! "$3" ] && inhibited && continue + [ ! "$3" ] && inhibited && break update_parameters if [ -f "$syshooks/$base" ]; then hook="$syshooks/$base" |