diff options
author | BangLang Huang <banglang.huang@foxmail.com> | 2016-09-27 14:25:04 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-09-27 17:50:22 +0200 |
commit | 142ec7ada939313cc890f94df5fc6903f2660635 (patch) | |
tree | 237ecbae5e35ffbf688df8966b127b3b11ede4db /target/linux/ramips/base-files/etc/board.d/02_network | |
parent | 9fe833e1d020748fa92e485aeb08b1ac9a6fdb09 (diff) | |
download | upstream-142ec7ada939313cc890f94df5fc6903f2660635.tar.gz upstream-142ec7ada939313cc890f94df5fc6903f2660635.tar.bz2 upstream-142ec7ada939313cc890f94df5fc6903f2660635.zip |
ramips : add support for Newifi D1
Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d/02_network')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 70297de6f8..c8b57ca64e 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -208,6 +208,13 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "4:lan" "6t@eth0" ;; + newifi-d1) + ucidef_set_interface_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" \ + "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6t@eth0" "7t@eth0" + ucidef_add_switch "switch1" \ + "4:lan" "6t@eth0" "7t@eth0" + ;; rt-n56u) ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0" @@ -322,6 +329,10 @@ ramips_setup_macs() lan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(macaddr_add "$lan_mac" -2) ;; + newifi-d1) + lan_mac=$(cat /sys/class/net/eth0/address) + lan_mac=$(macaddr_add "$lan_mac" 2) + ;; oy-0001) lan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(mtd_get_mac_binary factory 46) |