diff options
author | Erich Eckner <git@eckner.net> | 2020-03-18 15:06:54 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-18 15:06:54 +0100 |
commit | d970ccb156517c9d51c494c16945c15470fa576f (patch) | |
tree | 312a6dffd8b336585fbab57dc601ddb73304b707 /shutdownasap.in | |
parent | 2df66f15f1fa6ff3bafc2b132bd07718ac4c25ac (diff) | |
download | shutdownasap-d970ccb156517c9d51c494c16945c15470fa576f.tar.xz |
additionalWatchHook() new
Diffstat (limited to 'shutdownasap.in')
-rwxr-xr-x | shutdownasap.in | 6 |
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)" |