aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 1 insertions, 4 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 92d61f3d..0a9d3427 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -298,17 +298,14 @@ if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
# Try raidstart first...if that fails then
# fall back to raidadd, raidrun. If that
# also fails, then we drop to a shell
+ RESULT=1
if [ -x /sbin/raidstart ]; then
/sbin/raidstart $i
RESULT=$?
- else
- RESULT=1
fi
if [ $RESULT -gt 0 -a -x /sbin/raid0run ]; then
/sbin/raid0run $i
RESULT=$?
- else
- RESULT=1
fi
if [ $RESULT -gt 0 -a -x /sbin/raidadd -a -x /sbin/raidrun ]; then
/sbin/raidadd $i