Changeset 18260


Ignore:
Timestamp:
01/21/12 18:52:17 (16 months ago)
Author:
BrainSlayer
Message:

load only if required

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/services/bonding.c

    r12224 r18260  
    5757        sprintf(count, "max_bonds=%s", 
    5858                nvram_default_get("bonding_number", "1")); 
    59         eval("insmod", "bonding", "miimon=100", "downdelay=200", "updelay=200", 
    60              mode, count); 
    6159 
    6260        static char word[256]; 
    6361        char *next, *wordlist; 
    64  
     62        int first=0; 
    6563        wordlist = nvram_safe_get("bondings"); 
    6664        foreach(word, wordlist, next) { 
     
    7674                        sysprintf("iwpriv %s wdssep 0", port); 
    7775                        sysprintf("ifconfig %s up", port); 
     76                } 
     77                if (!first){ 
     78                    eval("insmod", "bonding", "miimon=100", "downdelay=200", "updelay=200",mode, count); 
     79                    first=1; 
    7880                } 
    7981                eval("ifconfig", tag, "0.0.0.0", "up"); 
Note: See TracChangeset for help on using the changeset viewer.