summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-02-08 06:02:05 +0100
committerErich Eckner <git@eckner.net>2022-02-08 06:02:05 +0100
commite01961b76dd0833099ac01b3d37146065f3a99e5 (patch)
tree52512d063e952a199e6fe177d86357befa34eb79
parent0a9a2ef012cebd6a78535b2b94812c0821e03405 (diff)
downloadshutdownasap-e01961b76dd0833099ac01b3d37146065f3a99e5.tar.xz
shutdownasap: accept "active" as a clean raid status
-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' {} + \