Changeset 15319


Ignore:
Timestamp:
2009-04-21T11:25:51+02:00 (9 years ago)
Author:
florian
Message:

[package] fix nvram_get checking on non-WGT634U (#4975)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/src/switch-robo.c

    r15290 r15319  
    7171 
    7272extern char *nvram_get(const char *name); 
     73#define getvar(str) (nvram_get(str)?:"") 
    7374 
    7475/* Data structure for a Roboswitch device. */ 
     
    276277 
    277278        /* WAN port LED, except for Netgear WGT634U */ 
    278         if (strcmp(nvram_get("nvram_type"), "cfe")) 
     279        if (strcmp(getvar("nvram_type"), "cfe") != 0) 
    279280                robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F); 
    280281 
Note: See TracChangeset for help on using the changeset viewer.