diff options
author | Erich Eckner <git@eckner.net> | 2021-06-27 21:32:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-06-27 21:32:41 +0200 |
commit | f08f75879a7d90fc96fda775f0b3ec25185cd585 (patch) | |
tree | b2778a80059117413bbe20a202c608892ccb752f | |
parent | 946fa787127e90ad5fec36ff98d65d556a4d6842 (diff) | |
download | print-status-f08f75879a7d90fc96fda775f0b3ec25185cd585.tar.xz |
print-status-html: non-redundant raids are ok, iff active
-rwxr-xr-x | print-status-html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/print-status-html b/print-status-html index 8e0a14b..ae070ed 100755 --- a/print-status-html +++ b/print-status-html @@ -91,11 +91,13 @@ EOF fi done \ | sed ' - s,.*\[U\+\]$,<font color="#008000">\0</font>, + s,^\(.* \)active \(.*\[U\+\]\)$,<font color="#008000">\1\2</font>, t s,^\(re\(shape\|covery\|sync\) \S\+\) \[\(\S*\)>\(\.*\)\] \(\S\+\s\+\S\+\s\+\S\+\)$,<font color="#808000">\1</font> <tt>[<font color="#008000">\3</font><font color="#808000">\></font><font color="#800000">\4</font>]</tt> \5, t - s,.*,<font color="#800000">\0</font>, + s,^\(.* \)active \(.*\)$,<font color="#008000">\1\2</font>, + t + s,^.*$,<font color="#800000">\0</font>, ' find /sys/block/ \ |