diff options
author | Erich Eckner <git@eckner.net> | 2022-02-08 06:02:05 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-02-08 06:02:05 +0100 |
commit | e01961b76dd0833099ac01b3d37146065f3a99e5 (patch) | |
tree | 52512d063e952a199e6fe177d86357befa34eb79 | |
parent | 0a9a2ef012cebd6a78535b2b94812c0821e03405 (diff) | |
download | shutdownasap-e01961b76dd0833099ac01b3d37146065f3a99e5.tar.xz |
shutdownasap: accept "active" as a clean raid status
-rwxr-xr-x | shutdownasap.in | 2 |
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' {} + \ |