Changeset 10255
- Timestamp:
- 09/01/08 16:21:05 (5 years ago)
- Location:
- src/router/services
- Files:
-
- 2 edited
-
Makefile (modified) (1 diff)
-
sysinit/sysinit.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/services/Makefile
r10186 r10255 412 412 CFLAGS += -DHAVE_IPROUTE2 413 413 endif 414 415 ifeq ($(CONFIG_BLUE),y) 416 CFLAGS += -DHAVE_BLUE 417 endif 418 ifeq ($(CONFIG_CYAN),y) 419 CFLAGS += -DHAVE_CYAN 420 endif 421 ifeq ($(CONFIG_ELEGANT),y) 422 CFLAGS += -DHAVE_ELEGANT 423 endif 424 ifeq ($(CONFIG_RED),y) 425 CFLAGS += -DHAVE_RED 426 endif 427 ifeq ($(CONFIG_YELLOW),y) 428 CFLAGS += -DHAVE_YELLOW 429 endif 430 ifeq ($(CONFIG_GREEN),y) 431 CFLAGS += -DHAVE_GREEN 432 endif 433 ifeq ($(CONFIG_ORANGE),y) 434 CFLAGS += -DHAVE_ORANGE 435 endif 436 414 437 ifeq ($(CONFIG_TELCOM),y) 415 438 CFLAGS += -DHAVE_TELCOM -
src/router/services/sysinit/sysinit.c
r10217 r10255 1525 1525 // if dist_type micro, check styles, and force to elegant if needed 1526 1526 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 1529 1562 { 1530 1563 nvram_set( "router_style", "elegant" );
Note: See TracChangeset
for help on using the changeset viewer.
