Changeset 1272 in MondoRescue
- Timestamp:
- Mar 26, 2007, 7:35:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/sbin/init
r1193 r1272 309 309 StartRaids() { 310 310 local raid_devices i 311 312 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 311 313 if which raidstart > /dev/null 2> /dev/null ; then 312 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1`313 314 for i in $raid_devices ; do 314 315 if grep `basename $i` /proc/mdstat > /dev/null 2> /dev/null ; then … … 322 323 LogIt "Running 'mdrun'" 1 323 324 mdrun 325 elif which mdadm > /dev/null 2> /dev/null ; then 326 LogIt "Running 'mdadm'" 1 327 for i in $raid_devices ; do 328 if grep `basename $i` /proc/mdstat > /dev/null 2> /dev/null ; then 329 LogIt "$i is started already; no need to run 'mdadm $i'" 1 330 else 331 LogIt "Running 'mdadm $i'" 1 332 mdadm -Ac partitions -m dev $i 333 fi 334 done 324 335 else 325 336 LogIt "Warning: Neither 'raidstart' nor 'mdrun''found. RAID devices may not have started." 1
Note:
See TracChangeset
for help on using the changeset viewer.