Changeset 2562


Ignore:
Timestamp:
Jan 31, 2010, 1:54:38 AM (9 years ago)
Author:
bruno
Message:
  • Using forcemods="mod1 mod2" will now do something and load those modules first
File:
1 edited

Legend:

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

    r2559 r2562  
    656656ModprobeAllModules() {
    657657
    658     for m in `find /lib/modules -name '*\.ko*' -o -name '*\.o*'`; do
     658    lismod=`find /lib/modules -name '*\.ko*' -o -name '*\.o*'`
     659    # loading forced modules first
     660    for m in $lismod; do
     661        k=`basename $m | sed 's/\.ko.*$//'`
     662        j=`basename $k | sed 's/\.o.*$//'`
     663        echo "$FORCE_MODS" | grep -q "$j "
     664        if [ $? -eq 0 ]; then
     665            echo "Forcing first $j..."
     666            modprobe -q $j
     667        fi
     668    done
     669    for m in $lismod; do
    659670        k=`basename $m | sed 's/\.ko.*$//'`
    660671        j=`basename $k | sed 's/\.o.*$//'`
     
    662673        if [ $? -eq 0 ]; then
    663674            echo "Denying $j..."
     675            continue
     676        fi
     677        echo "$FORCE_MODS" | grep -q "$j "
     678        if [ $? -eq 0 ]; then
    664679            continue
    665680        fi
Note: See TracChangeset for help on using the changeset viewer.