diff options
author | Bill Nottingham <notting@redhat.com> | 1999-06-07 06:26:57 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-06-07 06:26:57 +0000 |
commit | 98ac61c5e351c23e5bc2cad35fa6f992a6c6387c (patch) | |
tree | dc0300ac888a53a2383d39886c9b38fc476daf77 /rc.d | |
parent | d651662679e177c4c954e753011e13b92efe599b (diff) | |
download | initscripts-98ac61c5e351c23e5bc2cad35fa6f992a6c6387c.tar initscripts-98ac61c5e351c23e5bc2cad35fa6f992a6c6387c.tar.gz initscripts-98ac61c5e351c23e5bc2cad35fa6f992a6c6387c.tar.bz2 initscripts-98ac61c5e351c23e5bc2cad35fa6f992a6c6387c.tar.xz initscripts-98ac61c5e351c23e5bc2cad35fa6f992a6c6387c.zip |
revert raid
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 75d92f97..45cc5e22 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -215,11 +215,16 @@ if [ -f /etc/rc.d/rc.modules ]; then fi # Add raid devices -if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidstart ]; then - action "Starting up RAID devices" raidstart -a +if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidadd ]; then + action "Starting up RAID devices" 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 |