summaryrefslogtreecommitdiff
path: root/shutdownasap.in
diff options
context:
space:
mode:
Diffstat (limited to 'shutdownasap.in')
-rwxr-xr-xshutdownasap.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index 378e70c..aef43c4 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -42,15 +42,24 @@ do
fi
done
- for s in "${!shutDownNoGos[@]}"
+ for s in "${!shutDownNoGoProcesses[@]}"
do
- if [ -e "${shutDownNoGos[${s}]}" ] || echo "${prozesse}" | grep -q "\(\s\|/\)${shutDownNoGos[${s}]}\(\$\|\s\)"
+ if echo "${prozesse}" | grep -q "\(\s\|/\)${shutDownNoGoProcesses[${s}]}\(\$\|\s\)"
then
nochwarten=true
echo "prozess: ${s}"
fi
done
+ for s in "${!shutDownNoGoFiles[@]}"
+ do
+ if [ -e "${shutDownNoGoFiles[${s}]}" ] && echo "${prozesse}" | grep -q "^\S\+\s\+$(cat "${shutDownNoGoFiles[${s}]}")\s"
+ then
+ nochwarten=true
+ echo "datei: ${s}"
+ fi
+ done
+
if ${nochwarten}
then
echo "warten ..."