Changeset 904 in MondoRescue for trunk/mindi-busybox/modutils/modprobe.c


Ignore:
Timestamp:
Oct 25, 2006, 1:51:57 AM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r890:902 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi-busybox/modutils/modprobe.c

    r821 r904  
    689689            if (!show_only) {
    690690                int rc2 = wait4pid(bb_spawn(argv));
    691                
     691
    692692                if (do_insert) {
    693693                    rc = rc2; /* only last module matters */
     
    838838
    839839        // process tail ---> head
    840         rc = mod_process ( tail, 1 );
     840        if ((rc = mod_process ( tail, 1 )) != 0) {
     841            /*
     842             * In case of using udev, multiple instances of modprobe can be
     843             * spawned to load the same module (think of two same usb devices,
     844             * for example; or cold-plugging at boot time). Thus we shouldn't
     845             * fail if the module was loaded, and not by us.
     846             */
     847            if (already_loaded (mod) )
     848                rc = 0;
     849        }
    841850    }
    842851    else
Note: See TracChangeset for help on using the changeset viewer.