Ignore:
Timestamp:
Sep 2, 2007, 2:01:44 AM (12 years ago)
Author:
bruno
Message:

Fix bug #189 (MarkNienberg?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1476 r1610  
    329329                LogIt "$i is started already; no need to run 'mdadm $i'" 1
    330330            else
    331                 LogIt "Running 'mdadm $i'" 1
    332                 mdadm -Ac partitions -m dev $i
     331                if [ -f /etc/mdadm.conf ] ; then
     332                    LogIt "Running 'mdadm $i' with user supplied /etc/mdadm.conf" 1
     333                    mdadm -A $i -c /etc/mdadm.conf
     334                elif [ -f /etc/mdadm/mdadm.conf ] ; then
     335                    LogIt "Running 'mdadm $i' with user supplied /etc/mdadm/mdadm.conf" 1
     336                    mdadm -A $i -c /etc/mdadm/mdadm.conf
     337                else
     338                    LogIt "Running 'mdadm $i'" 1
     339                    mdadm -Ac partitions -m dev $i
     340                fi
    333341            fi
    334342        done
Note: See TracChangeset for help on using the changeset viewer.