add dumb mdstat output

master
neingeist 12 years ago
parent 5eb1feca2d
commit fbf2c5d4cc

@ -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:

Loading…
Cancel
Save