summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/base-files
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-12 12:07:07 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-12 12:07:07 +0000
commite366e14d1b593fae9515d67d27f3f53614df2aab (patch)
tree0a364241c0c7a42a56cc3acae8aa4319b4b7ea53 /target/linux/lantiq/base-files
parent50fd74910e7532dd1cebff0cec528f7ec0abf74a (diff)
lantiq: improve Arcadyan ARV4510PW support
Arcadyan ARV4510PW has already a build profile in OpenWrt, but it is severely lacking. This patch brings it up-to-date. Signed-off-by: Matti Laakso <malaakso@elisanet.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39230 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files')
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/02_network16
1 files changed, 12 insertions, 4 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/02_network b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
index 3262f080c3..41785f4ba0 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
@@ -47,16 +47,24 @@ board=$(lantiq_board_id)
case "$board" in
# adm6996
+ARV4510PW)
+ lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
+ wan_mac=$(macaddr_add "$lan_mac" 1)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "3 2 1 0 5t"
+ ;;
+
ARV4520PW)
ucidef_set_interface_lan "eth0.1"
- ucidef_add_switch "eth0" "1" "1"
- ucidef_add_switch_vlan "eth0" "1" "3 2 1 0 5t"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "3 2 1 0 5t"
;;
ACMP252|GIGASX76X)
ucidef_set_interface_lan "eth0.1"
- ucidef_add_switch "eth0" "1" "1"
- ucidef_add_switch_vlan "eth0" "1" "4 3 2 1 5t"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "4 3 2 1 5t"
;;
# ar8316