4 echo "this disk seems to be a raid device, we will remount raid"
8 echo "do you want to execute this??"
16 if [ "$a" = "y" ];then
17 cat checkraidtemp |cut -d"/" -f3|cut -d" " -f1|while read line;do
19 mdonlinecheck=`echo $line`
20 mdadm --detail /dev/$mdonlinecheck |grep Active|cut -d":" -f2|cut -c 2-5>/dev/null
22 raidonline=`mdadm --detail /dev/$mdonlinecheck |grep Active|cut -d":" -f2|cut -c 2-5`
23 if [ ! "$raidonline" = "0" ];then
24 echo "this raid array seems to be online, unmounting it"
26 mdadm --stop /dev/$mdonlinecheck