--- checkfs Tue Sep 3 11:09:17 2002 +++ checkfs Fri Sep 6 13:13:45 2002 @@ -27,10 +27,13 @@ # Start software raid if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ] then - ebegin "Starting software RAID" - # still echo stderr for debugging - /sbin/raidstart --all >/dev/null - eend $? "Failed to start software RAID" + if [ $(grep -c active /proc/mdstat) -lt 1 ] + then + ebegin "Starting software RAID" + # still echo stderr for debugging + /sbin/raidstart --all >/dev/null + eend $? "Failed to start software RAID" + fi fi if [ -f /fastboot ] --- halt.sh Tue Sep 3 11:09:17 2002 +++ halt.sh Fri Sep 6 14:11:27 2002 @@ -87,9 +87,12 @@ #stop RAID if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ] then - ebegin "Stopping software RAID" - raidstop -a - eend $? "Failed to stop software RAID" + if [ $(mount|grep -c "/dev/md") -lt 1 ] + then + ebegin "Stopping software RAID" + raidstop -a + eend $? "Failed to stop software RAID" + fi fi #stop LVM