From 965ff9c155d0151921514551881db4e6d499c214 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Fri, 20 Jun 2008 20:50:18 -0500 Subject: If suspend has already been inhibited, don't run more hooks. --- pm/pm-functions.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pm/pm-functions.in') 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" -- cgit v1.2.3