Changeset 18727 for src/router/services/sysinit/sysinit-hornet.c
- Timestamp:
- 03/13/12 18:23:11 (15 months ago)
- File:
-
- 1 edited
-
src/router/services/sysinit/sysinit-hornet.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/services/sysinit/sysinit-hornet.c
r18726 r18727 76 76 system("insmod ag71xx || insmod ag7240_mod"); 77 77 #ifdef HAVE_WR741V4 78 #ifdef HAVE_SWCONFIG78 /*#ifdef HAVE_SWCONFIG 79 79 system("swconfig dev eth1 set reset 1"); 80 80 system("swconfig dev eth1 set enable_vlan 1"); … … 85 85 eval("vconfig", "set_name_type", "VLAN_PLUS_VID_NO_PAD"); 86 86 eval("vconfig", "add", "eth1", "1"); 87 eval("vconfig", "add", "eth1", "2"); 87 eval("vconfig", "add", "eth1", "2");*/ 88 88 FILE *fp = fopen("/dev/mtdblock/0", "rb"); 89 89 char mac[32]; … … 100 100 copy[0], copy[1], copy[2], copy[3], copy[4], copy[5]); 101 101 fprintf(stderr, "configure eth1 to %s\n", mac); 102 eval("ifconfig", "eth0", "hw", "ether", mac); 103 MAC_ADD(mac); 102 104 eval("ifconfig", "eth1", "hw", "ether", mac); 103 eval("ifconfig", "vlan1", "hw", "ether", mac);104 MAC_ADD(mac);105 eval("ifconfig", "vlan2", "hw", "ether", mac);106 105 #ifndef HAVE_ATH9K 107 106 MAC_SUB(mac);
Note: See TracChangeset
for help on using the changeset viewer.
