Changeset 14798
- Timestamp:
- 07/13/10 20:38:01 (3 years ago)
- Location:
- src/router
- Files:
-
- 4 edited
-
libutils/Makefile (modified) (1 diff)
-
libutils/utils.c (modified) (1 diff)
-
services/Makefile (modified) (1 diff)
-
services/sysinit/sysinit-gateworx.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/libutils/Makefile
r14774 r14798 142 142 CFLAGS += -DHAVE_PRONGHORN 143 143 endif 144 ifeq ($(CONFIG_USR8200),y) 145 CFLAGS += -DHAVE_USR8200 146 endif 144 147 ifeq ($(CONFIG_WG302),y) 145 148 CFLAGS += -DHAVE_WG302 -
src/router/libutils/utils.c
r14774 r14798 522 522 setRouter("Actiontec MI424WR"); 523 523 return ROUTER_BOARD_GATEWORX_GW2345; 524 #elif HAVE_USR8200 525 setRouter("US Robotics USR8200"); 526 return ROUTER_BOARD_GATEWORX; 524 527 #elif HAVE_TONZE 525 528 setRouter("Tonze AP-425"); -
src/router/services/Makefile
r14738 r14798 231 231 ifeq ($(CONFIG_WR1043),y) 232 232 CFLAGS_EXTRA += -DHAVE_WR1043 233 endif 234 ifeq ($(CONFIG_USR8200),y) 235 CFLAGS_EXTRA += -DHAVE_USR8200 233 236 endif 234 237 ifeq ($(CONFIG_WR941),y) -
src/router/services/sysinit/sysinit-gateworx.c
r14606 r14798 428 428 } 429 429 #endif 430 #ifdef HAVE_USR8200 431 { 432 eval("setmac", "-f", "/dev/mtdblock/7", "-n", "1", "-i", "0", 433 "-r", "npe_eth0_esa"); 434 eval("setmac", "-f", "/dev/mtdblock/7", "-n", "1", "-i", "1", 435 "-r", "npe_eth1_esa"); 436 struct ifreq ifr; 437 int s; 438 439 if ((s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW))) { 440 char eabuf[32]; 441 442 strncpy(ifr.ifr_name, "ixp0", IFNAMSIZ); 443 ioctl(s, SIOCGIFHWADDR, &ifr); 444 nvram_set("et0macaddr_safe", 445 ether_etoa((unsigned char *)ifr.ifr_hwaddr. 446 sa_data, eabuf)); 447 close(s); 448 } 449 } 450 #endif 430 451 431 452 #ifdef HAVE_WG302V1
Note: See TracChangeset
for help on using the changeset viewer.
