diff options
author | John Crispin <blogic@openwrt.org> | 2014-01-12 12:07:07 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-01-12 12:07:07 +0000 |
commit | c537a63fcfa4cd00463d5466da694248c3229b42 (patch) | |
tree | 0a364241c0c7a42a56cc3acae8aa4319b4b7ea53 /target/linux/lantiq/base-files | |
parent | 3b5cd55fb43ab7ee320a5d95de8233a8c5999365 (diff) | |
download | upstream-c537a63fcfa4cd00463d5466da694248c3229b42.tar.gz upstream-c537a63fcfa4cd00463d5466da694248c3229b42.tar.bz2 upstream-c537a63fcfa4cd00463d5466da694248c3229b42.zip |
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_network | 16 |
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 |