diff options
author | John Crispin <john@openwrt.org> | 2014-08-03 11:13:52 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-08-03 11:13:52 +0000 |
commit | 04e4ff282ad359485afe34deb658f36ffb34c16f (patch) | |
tree | 44531b4cdef2083cb397c53fe24ba3a0d1834766 /target/linux/ramips/base-files/etc/uci-defaults/02_network | |
parent | 44cb68c038ccef470e346c6fd9d0919a82fe68d9 (diff) | |
download | upstream-04e4ff282ad359485afe34deb658f36ffb34c16f.tar.gz upstream-04e4ff282ad359485afe34deb658f36ffb34c16f.tar.bz2 upstream-04e4ff282ad359485afe34deb658f36ffb34c16f.zip |
ramips:support Lenovo AC1200 Wireless router
Lenovo AC1200 series has two types, Y1 and Y1S.
Y1S has 256MB DDR2, Y1 only has 128MB and Y1 have no Giga Port.
Signed-off-by: Lintel <lintel.huang@gmail.com>
SVN-Revision: 41961
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults/02_network')
-rwxr-xr-x | target/linux/ramips/base-files/etc/uci-defaults/02_network | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index be70698b70..95e728cec7 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -184,6 +184,13 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "4 6t" ;; + y1 |\ + y1s) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5 6t" + ucidef_add_switch_vlan "switch0" "2" "0 6t" + ;; d105 | \ na930 | \ omni-emb-hpm|\ @@ -249,7 +256,9 @@ ramips_setup_macs() dir-300-b7 | \ dir-320-b1 | \ psr-680w |\ - sl-r7205) + sl-r7205 |\ + y1 |\ + y1s) lan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(macaddr_setbit_la "$lan_mac") wan_mac=$(macaddr_add "$lan_mac" 1) |