summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshutdownasap.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index 8cf3210..3f2b90b 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -103,7 +103,7 @@ do
[ -d /sys/devices/virtual/block/ ] \
&& find /sys/devices/virtual/block/ \
-name 'array_state' \
- -exec grep -HvxF 'clean' {} + \
+ -exec grep -HvxF "$(printf '%s\n' 'clean' 'active')" {} + \
, \
-name 'sync_action' \
-exec grep -HxF 'recover' {} + \