add dumb mdstat output

This commit is contained in:
neingeist 2013-02-21 14:22:37 +01:00
parent 5eb1feca2d
commit fbf2c5d4cc

View file

@ -94,4 +94,11 @@ for (my $i = 0; $i < $diskcount; $i++) {
printf " %s %02.f°%s\n", $dev, $temp, $unit;
}
# mdstat
open my $fh, "<", "/proc/mdstat";
local $/ = undef; # slurp
my $mdstat = <$fh>;
print $mdstat;
close $fh;
# vim:textwidth=120: