diff options
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -112,9 +112,9 @@ run_hook sysinit_udevsettled [[ -d /sys/class/net/lo ]] && \ status "Bringing up loopback interface" /sbin/ifconfig lo 127.0.0.1 up -# If necessary, find md devices and manually assemble RAID arrays -if [[ -f /etc/mdadm.conf ]] && /bin/grep -q ^ARRAY /etc/mdadm.conf; then - status "Activating RAID arrays" /sbin/mdadm --assemble --scan +# SoftRAID devices detection +if [[ $USEMDADM =~ yes|YES && -x /sbin/mdadm ]]; then + status "Activating SoftRAID arrays" /sbin/mdadm --assemble --scan fi # FakeRAID devices detection |