add dumb mdstat output
This commit is contained in:
parent
5eb1feca2d
commit
fbf2c5d4cc
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue