From e01961b76dd0833099ac01b3d37146065f3a99e5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 8 Feb 2022 06:02:05 +0100 Subject: shutdownasap: accept "active" as a clean raid status --- shutdownasap.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' {} + \ -- cgit v1.2.3-70-g09d2