summaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 3e79b21b..19c88e2e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -427,8 +427,10 @@ if [ -f /etc/rc.modules ]; then
fi
# Add raid devices
-if [ ! -f /proc/mdstat ]; then
+if [ -f /etc/raidtab ]; then
+ if [ ! -f /proc/mdstat ]; then
modprobe md >/dev/null 2>&1
+ fi
fi
if [ -f /proc/mdstat -a -f /etc/raidtab ]; then