Changeset 623 in MondoRescue
- Timestamp:
- Jun 4, 2006, 2:33:24 AM (18 years ago)
- Location:
- branches
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0.8/mindi/rootfs/sbin/init
r586 r623 482 482 StartRaids() { 483 483 local raid_devices i 484 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 485 for i in $raid_devices ; do 486 if grep `basename $i` /proc/mdstat > /dev/null 2> /dev/null ; then 487 LogIt "$i is started already; no need to run 'raidstart $i'" 1 488 else 489 LogIt "Running 'raidstart $i'" 1 490 raidstart $i 491 fi 492 # sleep 1 493 done 494 # [ "$raid_devices" != "" ] && PauseForRaid 484 if which raidstart > /dev/null 2> /dev/null ; then 485 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 486 for i in $raid_devices ; do 487 if grep `basename $i` /proc/mdstat > /dev/null 2> /dev/null ; then 488 LogIt "$i is started already; no need to run 'raidstart $i'" 1 489 else 490 LogIt "Running 'raidstart $i'" 1 491 raidstart $i 492 fi 493 done 494 elif which mdrun > /dev/null 2> /dev/null ; then 495 LogIt "Running 'mdrun'" 1 496 mdrun 497 else 498 LogIt "Warning: Neither 'raidstart' nor 'mdrun''found. RAID devices may not have started." 1 499 fi 500 495 501 } 496 502 -
branches/stable/mindi/rootfs/sbin/init
r587 r623 482 482 StartRaids() { 483 483 local raid_devices i 484 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 485 for i in $raid_devices ; do 486 if grep `basename $i` /proc/mdstat > /dev/null 2> /dev/null ; then 487 LogIt "$i is started already; no need to run 'raidstart $i'" 1 488 else 489 LogIt "Running 'raidstart $i'" 1 490 raidstart $i 491 fi 492 # sleep 1 493 done 494 # [ "$raid_devices" != "" ] && PauseForRaid 484 if which raidstart > /dev/null 2> /dev/null ; then 485 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 486 for i in $raid_devices ; do 487 if grep `basename $i` /proc/mdstat > /dev/null 2> /dev/null ; then 488 LogIt "$i is started already; no need to run 'raidstart $i'" 1 489 else 490 LogIt "Running 'raidstart $i'" 1 491 raidstart $i 492 fi 493 done 494 elif which mdrun > /dev/null 2> /dev/null ; then 495 LogIt "Running 'mdrun'" 1 496 mdrun 497 else 498 LogIt "Warning: Neither 'raidstart' nor 'mdrun''found. RAID devices may not have started." 1 499 fi 500 495 501 } 496 502
Note:
See TracChangeset
for help on using the changeset viewer.