From fbf2c5d4ccb61281d9a800e1d29aa4f4302d0c46 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 21 Feb 2013 14:22:37 +0100 Subject: [PATCH] add dumb mdstat output --- conky-disks | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conky-disks b/conky-disks index 5f4af9f..b91160f 100755 --- a/conky-disks +++ b/conky-disks @@ -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: