Changeset 9964


Ignore:
Timestamp:
07/22/08 02:00:27 (5 years ago)
Author:
BrainSlayer
Message:

tonze support

Location:
src/router
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/Makefile

    r9951 r9964  
    232232CFLAGS += -DHAVE_GATEWORX 
    233233else 
     234ifeq ($(CONFIG_TONZE),y) 
     235CFLAGS += -DHAVE_TONZE 
     236endif 
    234237 
    235238ifeq ($(CONFIG_GATEWORX),y) 
  • src/router/httpd/modules/upgrade.c

    r9952 r9964  
    151151    return eval ("write", url, "rootfs"); 
    152152#else 
    153 #ifdef HAVE_NOP8670 
     153#if defined(HAVE_NOP8670) || defined(HAVE_TONZE) 
    154154  eval ("fischecksum"); 
    155155#endif 
  • src/router/libutils/Makefile

    r9907 r9964  
    116116  CFLAGS += -DHAVE_WRK54G 
    117117endif 
     118ifeq ($(CONFIG_TONZE),y) 
     119  CFLAGS += -DHAVE_TONZE 
     120endif 
    118121ifeq ($(CONFIG_WRT54GV7),y) 
    119122  CFLAGS += -DHAVE_WRT54GV7 
  • src/router/services/Makefile

    r9945 r9964  
    111111CFLAGS += -DHAVE_KAID 
    112112endif 
     113ifeq ($(CONFIG_TONZE),y) 
     114CFLAGS += -DHAVE_TONZE 
     115endif 
    113116ifeq ($(CONFIG_SPUTNIK),y) 
    114117CFLAGS += -DHAVE_SPUTNIK 
  • src/router/services/sysinit/sysinit-gateworx.c

    r9952 r9964  
    396396    } 
    397397    } 
     398#ifdef HAVE_TONZE 
     399 { 
     400  struct ifreq ifr; 
     401  int s; 
     402  if ((s = socket (AF_INET, SOCK_RAW, IPPROTO_RAW))) 
     403    { 
     404      char eabuf[32]; 
     405      strncpy (ifr.ifr_name, "ixp0", IFNAMSIZ); 
     406      ioctl (s, SIOCGIFHWADDR, &ifr); 
     407      nvram_set ("et0macaddr_safe", 
     408                 ether_etoa ((unsigned char *) ifr.ifr_hwaddr.sa_data, 
     409                             eabuf)); 
     410      close (s); 
     411    }  
     412 } 
     413#endif 
    398414 
    399415  /* Set a sane date */ 
  • src/router/shared/Makefile

    r9939 r9964  
    6464  CFLAGS += -DHAVE_GEMTEK 
    6565endif 
     66ifeq ($(CONFIG_TONZE),y) 
     67  CFLAGS += -DHAVE_TONZE 
     68endif 
    6669ifeq ($(CONFIG_WAVESAT),y) 
    6770  CFLAGS += -DHAVE_WAVESAT 
Note: See TracChangeset for help on using the changeset viewer.