summaryrefslogtreecommitdiff
path: root/shutdownasap.in
diff options
context:
space:
mode:
Diffstat (limited to 'shutdownasap.in')
-rwxr-xr-xshutdownasap.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index 328e7ba..1206fb5 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -21,8 +21,12 @@ fi
beforeWatchHook
i=1
-while [ ${i} -gt 0 ]
+while [ ${i} -gt 0 ] || ! additionalWatchHook
do
+ if [ ${i} -eq 0 ]
+ then
+ i=1
+ fi
sleep 1
prozesse="$(ps aux | grep -v grep)"