diff options
author | Patrick Simianer <p@simianer.de> | 2014-10-21 15:17:47 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-10-21 15:17:47 +0100 |
commit | 865ceea63cf8f1c070eb88e473908728cb241a6c (patch) | |
tree | 9fdd6ca5796ef5db1775d1505d10febe0e4cc86f /mdstat | |
parent | 6fab9d7234119f44777d92a826f9eb5e137738a1 (diff) |
fix
Diffstat (limited to 'mdstat')
-rwxr-xr-x | mdstat | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -0,0 +1,6 @@ +#!/bin/zsh + +S=$(awk '/^md/ {printf "%s: ", $1}; /blocks/ {print $NF}' </proc/mdstat) +STATUS=$(echo $S | cut -d" " -f2) +if [[ $STATUS != "[UUUU]" ]]; then logger "[mdstat warning] $S"; fi + |