]> arthur.barton.de Git - nagcollect.git/commitdiff
RAID.tst: only check RAID on Linux when /proc/md is readable
authorAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 16:52:25 +0000 (18:52 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 16:52:25 +0000 (18:52 +0200)
client/lib/tests/RAID.tst

index 3ce95d992d66991f1c69c1d05e48c892820b5d14..8b537e5660249a645d09489b3caada91332f3fb3 100644 (file)
@@ -21,7 +21,7 @@ if [ `uname` = "Darwin" ]; then
                fi
        fi
        rm -f "$tmp"
-elif [ `uname` = "Linux" ]; then
+elif [ `uname` = "Linux" -a -r /proc/mdstat ]; then
        status=$(cat /proc/mdstat | grep -E "(^md|^      [0-9])" | while read info1; do
                read info2
                dev=`echo $info1 | cut -d' ' -f1`