aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-07-14 10:25:51 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-07-14 10:25:51 +0000
commit50c554a475ac1bfbd6b310cf97e914c8b767f5a6 (patch)
tree36769fb84897e71424402f63f6ace0124e5ea61d /target/linux/ar71xx/base-files/etc/uci-defaults/02_network
parent0bec90b8300256dcaf95bc9de4273c55be6650fe (diff)
downloadupstream-50c554a475ac1bfbd6b310cf97e914c8b767f5a6.tar.gz
upstream-50c554a475ac1bfbd6b310cf97e914c8b767f5a6.tar.bz2
upstream-50c554a475ac1bfbd6b310cf97e914c8b767f5a6.zip
ar71xx: add user-space support for the EnGenius ESR900
Signed-off-by: Forest Crossman <cyrozap@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/5716/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 41641
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults/02_network')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index cb3a83b301..d4fb5770ce 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -266,6 +266,16 @@ wndr4300)
[ -n "$mac_wan" ] && ucidef_set_interface_macaddr "wan" "$mac_wan"
;;
+esr900)
+ local mac
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4"
+ ucidef_add_switch_vlan "switch0" "2" "0t 5"
+ mac=$(mtd_get_mac_ascii u-boot-env "wanaddr")
+ [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
+ ;;
+
all0305 |\
aw-nr580 |\
bullet-m |\