X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=client%2Flib%2Ftests%2FRAID.tst;h=8b537e5660249a645d09489b3caada91332f3fb3;hb=40f58119d52082bc216795d142823bd63d5deffb;hp=3ce95d992d66991f1c69c1d05e48c892820b5d14;hpb=5b954ab7b7ff7d3aa05bf65a0bd2724972879226;p=nagcollect.git diff --git a/client/lib/tests/RAID.tst b/client/lib/tests/RAID.tst index 3ce95d9..8b537e5 100644 --- a/client/lib/tests/RAID.tst +++ b/client/lib/tests/RAID.tst @@ -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`