2015-12-04 12:32:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2015-12-04 12:32:36 +00:00
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
case "$(board_name)" in
|
2015-12-04 12:32:36 +00:00
|
|
|
|
|
|
|
cvg834g |\
|
2016-05-22 22:56:23 +00:00
|
|
|
evg2000 |\
|
2017-02-19 18:27:36 +00:00
|
|
|
r1000h |\
|
2015-12-04 12:32:36 +00:00
|
|
|
rta770bw |\
|
|
|
|
rta770w |\
|
|
|
|
spw303v |\
|
|
|
|
spw500v)
|
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
ar1004g |\
|
|
|
|
bcm96338gw |\
|
|
|
|
bcm96338w |\
|
|
|
|
cpva642 |\
|
|
|
|
ct-5365 |\
|
|
|
|
ct-536p_5621t |\
|
|
|
|
ct-6373 |\
|
|
|
|
dg834g_v4 |\
|
|
|
|
dsl-2640b-b |\
|
|
|
|
dsl-2640u |\
|
|
|
|
fast2604 |\
|
|
|
|
rta1320 |\
|
|
|
|
v2110)
|
|
|
|
ucidef_add_switch "switch0" \
|
2016-10-15 23:20:40 +00:00
|
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth0"
|
2015-12-04 12:32:36 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
agpf-s0 |\
|
|
|
|
bcm96348gw |\
|
|
|
|
bcm96348gw-10 |\
|
|
|
|
bcm96348gw-11 |\
|
|
|
|
bcm96358vw |\
|
|
|
|
bcm96358vw2 |\
|
|
|
|
dg834gt |\
|
|
|
|
dmv-s0 |\
|
|
|
|
dsl-2650u |\
|
|
|
|
dv-201amr |\
|
|
|
|
f5d7633 |\
|
|
|
|
fast2404 |\
|
|
|
|
magic |\
|
|
|
|
rg100a |\
|
|
|
|
rta1025W |\
|
|
|
|
td-w8900gb |\
|
|
|
|
usr9108 |\
|
|
|
|
v2500v_bb)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
2016-10-15 23:20:40 +00:00
|
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth1"
|
2015-12-04 12:32:36 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
dsl-274xb-c |\
|
|
|
|
hg553 |\
|
|
|
|
hg556a_* |\
|
|
|
|
homehub2a)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "5t@eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
dva-g3810bn |\
|
|
|
|
hg520 |\
|
|
|
|
neufbox4)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth1"
|
|
|
|
;;
|
|
|
|
|
|
|
|
a4001n1 |\
|
|
|
|
a4001n |\
|
|
|
|
ar-5381u |\
|
|
|
|
ar-5387un |\
|
2016-12-23 23:24:44 +00:00
|
|
|
av4202n |\
|
2015-12-04 12:32:36 +00:00
|
|
|
bcm963281tan |\
|
|
|
|
bcm96328avng |\
|
|
|
|
bcm96368mvngr |\
|
|
|
|
dsl-274xb-f |\
|
|
|
|
dsl-275xb-d |\
|
|
|
|
fast2504n |\
|
|
|
|
fast2704v2 |\
|
2016-01-18 10:47:23 +00:00
|
|
|
hg622 |\
|
2015-12-04 12:32:36 +00:00
|
|
|
hg655b |\
|
|
|
|
p870hw-51a_v2 |\
|
|
|
|
r5010un_v2 |\
|
|
|
|
vr-3025un |\
|
|
|
|
vr-3025u |\
|
|
|
|
vr-3026e)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "8t@eth0"
|
|
|
|
;;
|
|
|
|
|
2017-08-12 10:40:22 +00:00
|
|
|
ar-5315u |\
|
2016-12-03 14:51:05 +00:00
|
|
|
vh4032n)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "8t@eth0"
|
|
|
|
;;
|
|
|
|
|
2015-12-04 12:32:36 +00:00
|
|
|
bcm96368mvwg)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"1:lan" "2:lan" "4:lan" "5:lan" "8t@eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
wap-5813n)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5t@eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
fast2704n |\
|
|
|
|
dgnd3700v1_dgnd3800b)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "0:wan" "8t@eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
neufbox6)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9t@eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
vg50)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8t@eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
bcm963268bu_p300)
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan" "3:lan" "4:lan" "5:lan" "6:lan" "7:lan" "8t@eth0"
|
|
|
|
;;
|
|
|
|
|
2017-02-14 15:37:04 +00:00
|
|
|
cpva502p |\
|
2016-08-29 14:03:49 +00:00
|
|
|
livebox1)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
;;
|
|
|
|
|
2015-12-04 12:32:36 +00:00
|
|
|
*)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|