Changeset 2908 in MondoRescue for branches


Ignore:
Timestamp:
Dec 5, 2011, 11:09:15 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Simplify the function engaging SCSI for Smart Array controllers, and support as many controller as we have
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/rootfs/etc/init.d/rcS

    r2893 r2908  
    651651
    652652EnableCcissIfAppropriate() {
    653     local i fname
    654     for i in 0 1 2 3 ; do
    655         fname="/proc/driver/cciss/cciss$i"
    656         if [ -e "$fname" ] ; then
    657             LogIt "Engaging $fname"
    658             echo "engage scsi" > $fname
    659             LogIt "...result=$?"
    660         fi
     653    local f
     654    for f in /proc/driver/cciss/cciss* ; do
     655        LogIt "Engaging $f"
     656        echo "engage scsi" > $f
     657        LogIt "...result=$?"
    661658    done
    662659}
Note: See TracChangeset for help on using the changeset viewer.