From 7ac1ebbe0fb4df09698de0ac196df4b131894ce9 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 14 Apr 2016 17:30:37 +0200 Subject: more general monitor_soft_raid --- monitor_soft_raid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monitor_soft_raid b/monitor_soft_raid index fc86d3a..1dc7da4 100755 --- a/monitor_soft_raid +++ b/monitor_soft_raid @@ -1,6 +1,7 @@ #!/bin/zsh +T="[$(printf 'U%.0s' {1..$1})]" S=$(awk '/^md/ {printf "%s: ", $1}; /blocks/ {print $NF}'