Changeset 18619


Ignore:
Timestamp:
03/02/12 07:21:51 (15 months ago)
Author:
eko
Message:

Cisco / Linksys E2500 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/modules/upgrade.c

    r18538 r18619  
    272272 
    273273                        if ((brand == ROUTER_WRT320N && nvram_match("boardrev", "0x1307"))      //E2000 
     274                            || brand == ROUTER_LINKSYS_E2500 
    274275                            || (brand == ROUTER_WRT610NV2 && nvram_match("boot_hw_model", "E300"))      //E3000 
    275276                            || brand == ROUTER_LINKSYS_E3200 
    276277                            || brand == ROUTER_LINKSYS_E4200) { 
    277278                                if (memcmp(&buf[0], &CODE_PATTERN_E2000, 4) 
     279                                    && memcmp(&buf[0], &CODE_PATTERN_E2500, 4) 
    278280                                    && memcmp(&buf[0], &CODE_PATTERN_E3000, 4) 
    279281                                    && memcmp(&buf[0], &CODE_PATTERN_E3200, 4) 
     
    292294                                } 
    293295                        } else { 
    294                                 if (memcmp(&buf[0], &CODE_PATTERN_NV60K, 4) == 
    295                                     0) { 
     296                                if (memcmp(&buf[0], &CODE_PATTERN_NV60K, 4) == 0 
     297                                        || memcmp(&buf[0], &CODE_PATTERN_NV64K, 4) == 0) { 
    296298                                        cprintf 
    297299                                            ("image not compatible with your router!\n"); 
     
    319321                            && memcmp(&buf[0], &CODE_PATTERN_E1000, 4) 
    320322                            && memcmp(&buf[0], &CODE_PATTERN_E2000, 4) 
     323                            && memcmp(&buf[0], &CODE_PATTERN_E2500, 4) 
    321324                            && memcmp(&buf[0], &CODE_PATTERN_E3000, 4) 
    322325                            && memcmp(&buf[0], &CODE_PATTERN_E3200, 4) 
Note: See TracChangeset for help on using the changeset viewer.