Ignore:
Timestamp:
03/13/12 18:23:11 (15 months ago)
Author:
BrainSlayer
Message:

okay, the way is different

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/sysinit/sysinit-hornet.c

    r18726 r18727  
    7676        system("insmod ag71xx || insmod ag7240_mod"); 
    7777#ifdef HAVE_WR741V4 
    78 #ifdef HAVE_SWCONFIG 
     78/*#ifdef HAVE_SWCONFIG 
    7979                system("swconfig dev eth1 set reset 1"); 
    8080                system("swconfig dev eth1 set enable_vlan 1"); 
     
    8585        eval("vconfig", "set_name_type", "VLAN_PLUS_VID_NO_PAD"); 
    8686        eval("vconfig", "add", "eth1", "1"); 
    87         eval("vconfig", "add", "eth1", "2"); 
     87        eval("vconfig", "add", "eth1", "2");*/ 
    8888        FILE *fp = fopen("/dev/mtdblock/0", "rb"); 
    8989        char mac[32]; 
     
    100100                        copy[0], copy[1], copy[2], copy[3], copy[4], copy[5]); 
    101101                fprintf(stderr, "configure eth1 to %s\n", mac); 
     102                eval("ifconfig", "eth0", "hw", "ether", mac); 
     103                MAC_ADD(mac); 
    102104                eval("ifconfig", "eth1", "hw", "ether", mac); 
    103                 eval("ifconfig", "vlan1", "hw", "ether", mac); 
    104                 MAC_ADD(mac); 
    105                 eval("ifconfig", "vlan2", "hw", "ether", mac); 
    106105#ifndef HAVE_ATH9K 
    107106                MAC_SUB(mac); 
Note: See TracChangeset for help on using the changeset viewer.