mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
mdstat.cgi: Print mdstat status in pure perl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
2ccb63bce8
commit
17ee1f135f
@@ -42,7 +42,13 @@ my %mainsettings = ();
|
||||
&Header::openbox('100%', 'left',"MD Raid State");
|
||||
|
||||
print '<textarea rows="25" cols="80" readonly="readonly">';
|
||||
print `cat "/proc/mdstat"`;
|
||||
|
||||
# Grab mdstat status.
|
||||
open(MDSTAT, "/proc/mdstat");
|
||||
my @mdstat = <MDSTAT>;
|
||||
close(MDSTAT);
|
||||
print "@mdstat";
|
||||
|
||||
print '</textarea>';
|
||||
|
||||
&Header::closebox();
|
||||
|
||||
Reference in New Issue
Block a user