diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 2327e5ad..411b2108 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -158,12 +158,17 @@ if [ -x /sbin/kerneld -a -n "$USEMODULES" ]; then fi # Add raid devices -if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidstart ]; then +if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidadd ]; then echo "Starting up RAID devices." - raidstart -a + raidadd -a rc=$? + if [ $rc = 0 ]; then + raidrun -a + rc = $? + fi + # A non-zero return means there were problems. if [ $rc -gt 0 ]; then echo |