diff options
author | John Crispin <john@openwrt.org> | 2014-01-12 12:07:07 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-01-12 12:07:07 +0000 |
commit | f58b424c9e808cb31a1174d17e61a571d60b966a (patch) | |
tree | b69cbfaf4c651fe78755d84b371fa9db1f2364a4 /target/linux/lantiq/base-files | |
parent | 4810de8e4bb03b3caf1c9ad9509e65244f228af1 (diff) | |
download | mtk-20170518-f58b424c9e808cb31a1174d17e61a571d60b966a.zip mtk-20170518-f58b424c9e808cb31a1174d17e61a571d60b966a.tar.gz mtk-20170518-f58b424c9e808cb31a1174d17e61a571d60b966a.tar.bz2 |
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>
SVN-Revision: 39230
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 3262f08..41785f4 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 |