X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fbase-files%2Fetc%2Fboard.d%2F02_network;h=33166079e7ada62e7a8187aae73d24cb32be9fd3;hp=626fb2cb3097f58e7ba78ce91415e9c2e0941f02;hb=9ebb44aef4db8f423f7bf1fd2436906b2eafb570;hpb=48745221a8b4cdd18811a071387915e3ad1587ee diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 626fb2cb30..33166079e7 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -86,6 +86,9 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "1:wan" "2:lan:3" "3:lan:2" ;; + engenius,ews511ap) + ucidef_set_interface_lan "eth0 eth1" "dhcp" + ;; etactica,eg200) ucidef_set_interface_lan "eth0" "dhcp" ;; @@ -252,6 +255,12 @@ ath79_setup_macs() elecom,wrc-300ghbk2-i) wan_mac=$(macaddr_add "$(mtd_get_mac_binary ART 4098)" -2) ;; + engenius,ews511ap) + lan_mac=$(mtd_get_mac_text "u-boot-env" 233) + eth1_mac=$(macaddr_add "$lan_mac" 1) + ucidef_set_interface "eth0" ifname "eth0" protocol "none" macaddr "$lan_mac" + ucidef_set_interface "eth1" ifname "eth1" protocol "none" macaddr "$eth1_mac" + ;; iodata,etg3-r) lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr) wan_mac=$(macaddr_add "$lan_mac" -1)