summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc/uci-defaults/network
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-23 16:56:06 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-04-23 16:56:06 +0000
commit1ab80c78171515cd6181d6eeb0a33dda2f7442e3 (patch)
treec843a0b733c81f4869e2424642ac2da6e410740e /target/linux/ramips/base-files/etc/uci-defaults/network
parent3626444c6d4f6de3905a218061b16421870d580a (diff)
downloadmtk-20170518-1ab80c78171515cd6181d6eeb0a33dda2f7442e3.zip
mtk-20170518-1ab80c78171515cd6181d6eeb0a33dda2f7442e3.tar.gz
mtk-20170518-1ab80c78171515cd6181d6eeb0a33dda2f7442e3.tar.bz2
ramips: rt305x: add support for the UR-336UN board
Patch-by: Lebedev Dmitry <lebedev@trendnet.ru> SVN-Revision: 31451
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults/network')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/network9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index 81c12de..c987a25 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -32,6 +32,10 @@ ramips_setup_interfaces()
f5d8235-v1 | \
f5d8235-v2 | \
+ ur-336un)
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ;;
+
v11st-fe)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
@@ -110,6 +114,11 @@ ramips_setup_macs()
;;
esr-9753 | \
+ ur-336un)
+ lan_mac=$(ramips_get_mac_binary devdata 16388)
+ wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
+ ;;
+
nbg-419n | \
wcr-150gn)
lan_mac=$(ramips_get_mac_binary factory 4)