Changeset 10255


Ignore:
Timestamp:
09/01/08 16:21:05 (5 years ago)
Author:
eko
Message:

styles size reduction

Location:
src/router/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/Makefile

    r10186 r10255  
    412412CFLAGS += -DHAVE_IPROUTE2 
    413413endif 
     414 
     415ifeq ($(CONFIG_BLUE),y) 
     416CFLAGS += -DHAVE_BLUE 
     417endif 
     418ifeq ($(CONFIG_CYAN),y) 
     419CFLAGS += -DHAVE_CYAN 
     420endif 
     421ifeq ($(CONFIG_ELEGANT),y) 
     422CFLAGS += -DHAVE_ELEGANT 
     423endif 
     424ifeq ($(CONFIG_RED),y) 
     425CFLAGS += -DHAVE_RED 
     426endif 
     427ifeq ($(CONFIG_YELLOW),y) 
     428CFLAGS += -DHAVE_YELLOW 
     429endif 
     430ifeq ($(CONFIG_GREEN),y) 
     431CFLAGS += -DHAVE_GREEN 
     432endif 
     433ifeq ($(CONFIG_ORANGE),y) 
     434CFLAGS += -DHAVE_ORANGE 
     435endif 
     436 
    414437ifeq ($(CONFIG_TELCOM),y) 
    415438CFLAGS += -DHAVE_TELCOM 
  • src/router/services/sysinit/sysinit.c

    r10217 r10255  
    15251525        // if dist_type micro, check styles, and force to elegant if needed 
    15261526        char *style = nvram_safe_get( "router_style" ); 
    1527  
    1528         if( !strstr( "blue cyan elegant green orange red yellow", style ) ) 
     1527        int need_elegant = 1; 
     1528 
     1529//      if( !strstr( "blue cyan elegant green orange red yellow", style ) ) 
     1530#ifdef HAVE_BLUE 
     1531    if( !strcmp( style, "blue" ) ) 
     1532        need_elegant = 0;        
     1533    else 
     1534#endif 
     1535#ifdef HAVE_CYAN 
     1536    if( !strcmp( style, "cyan" ) ) 
     1537        need_elegant = 0; 
     1538    else 
     1539#endif 
     1540#ifdef HAVE_YELLOW 
     1541    if( !strcmp( style, "yellow" ) ) 
     1542        need_elegant = 0; 
     1543    else 
     1544#endif 
     1545#ifdef HAVE_GREEN 
     1546    if( !strcmp( style, "green" ) ) 
     1547        need_elegant = 0; 
     1548    else 
     1549#endif 
     1550#ifdef HAVE_ORANGE 
     1551    if( !strcmp( style, "orange" ) ) 
     1552        need_elegant = 0; 
     1553    else 
     1554#endif 
     1555#ifdef HAVE_RED 
     1556    if( !strcmp( style, "red" ) ) 
     1557        need_elegant = 0; 
     1558#endif 
     1559 
     1560         
     1561        if (need_elegant)                       // default to elegant 
    15291562        { 
    15301563            nvram_set( "router_style", "elegant" ); 
Note: See TracChangeset for help on using the changeset viewer.