Ignore:
Timestamp:
Feb 16, 2007, 7:20:04 PM (13 years ago)
Author:
Bruno Cornec
Message:

New configuration option for mindi mindi_deny_mods which allows to specify a list of modules loaded which should NOT go on the boot media made by mindi (Allows HP OCMP with HW cards support)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1167 r1177  
    109109NET_MODS="$mindi_net_mods"
    110110EXTRA_MODS="$CDROM_MODS $mindi_extra_mods $mindi_additional_mods"
     111DENY_MODS="mindi_deny_mods"
    111112
    112113BOOT_MEDIA_MESSAGE="$mindi_boot_msg"
     
    939940    local module_list module fname oss r kern
    940941    oss="/root/oss/modules"
    941     module_list="`lsmod | sed -n '2,$s/ .*//p'`"
     942    module_list="`lsmod | sed -n '2,$s/ .*//'`"
     943    # Remove unwanted modules from list
     944    for i in $DENY_MODS; do
     945        module_list=`echo ${module_list} | tr ' ' '\n' | grep -Ev "^${i}$" | tr '\n' ' '`
     946    done
    942947###
    943948### Sq-Modification ... Use kernelname for module search path if specified
     
    10781083   
    10791084    echo -en "for outerloop in 1 2 3 4 5 ; do\necho -en \".\"\n" >> $outfile
    1080     list_to_echo="`lsmod | sed -n '2,$s/ .*//p'`"
     1085    # BERLIOS: That code is duplicated - Should be done once only
     1086    list_to_echo="`lsmod | sed -n '2,$s/ .*//'`"
     1087    # Remove unwanted modules from list
     1088    for i in $DENY_MODS; do
     1089        list_to_echo=`echo ${list_to_echo} | tr ' ' '\n' | grep -Ev "^${i}$" | tr '\n' ' '`
     1090    done
    10811091
    10821092    # Make temporary modprobe.conf file if we are told so
Note: See TracChangeset for help on using the changeset viewer.