3 # Copyright (C) 2012-2015 OpenWrt.org
6 .
/lib
/functions
/uci-defaults.sh
10 case "$(board_name)" in
17 t-com
,speedport-w-303v|\
18 t-com
,speedport-w-500v
)
19 ucidef_set_interface_lan
"eth0"
23 adb
,pdg-a4001n-a-000-1a1-ax|\
24 adb
,pdg-a4101n-a-000-1a1-ae|\
37 huawei
,echolife-hg622|\
38 huawei
,echolife-hg655b|\
42 technicolor
,tg582n-telecom-italia|\
44 ucidef_add_switch
"switch0" \
45 "0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "8t@eth0"
64 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
65 ucidef_add_switch
"switch0" \
66 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth1"
81 ucidef_add_switch
"switch0" \
82 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth0"
84 brcm
,bcm963268bu-p300
)
85 ucidef_add_switch
"switch0" \
86 "0:lan" "3:lan" "4:lan" "5:lan" "6:lan" "7:lan" "8t@eth0"
89 ucidef_add_switch
"switch0" \
90 "1:lan" "2:lan" "4:lan" "5:lan" "8t@eth0"
94 huawei
,echolife-hg553|\
95 huawei
,echolife-hg556a-a|\
96 huawei
,echolife-hg556a-b|\
97 huawei
,echolife-hg556a-c
)
98 ucidef_add_switch
"switch0" \
99 "0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "5t@eth0"
104 ucidef_add_switch
"switch0" \
105 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "8t@eth0"
108 ucidef_add_switch
"switch0" \
109 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "8t@eth0"
112 ucidef_add_switch
"switch0" \
113 "0:lan:2" "1:lan:3" "2:lan:4" "3:lan:1" "8t@eth0"
116 ucidef_add_switch
"switch0" \
117 "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5t@eth0"
119 d-link
,dva-g3810bn-tl|\
120 huawei
,echolife-hg520v|\
121 sfr
,neufbox-4-foxconn-r1|\
122 sfr
,neufbox-4-sercomm-r0
)
123 ucidef_set_interfaces_lan_wan
"eth1.1" "eth0"
124 ucidef_add_switch
"switch0" \
125 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth1"
128 ucidef_add_switch
"switch0" \
129 "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "8t@eth0"
132 ucidef_add_switch
"switch0" \
133 "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8t@eth0"
137 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
140 ucidef_add_switch
"switch0" \
141 "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "8t@eth0"
145 ucidef_add_switch
"switch0" \
146 "1:lan:3" "2:lan:2" "3:lan:1" "0:wan" "8t@eth0"
148 sercomm
,h500-s-lowi|\
150 ucidef_add_switch
"switch0" "4:lan" "3:wan" "8t@eth0"
152 sfr
,neufbox-6-sercomm-r0
)
153 ucidef_add_switch
"switch0" \
154 "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9t@eth0"
157 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
158 ucidef_add_switch
"switch0" \
159 "0:lan" "1:lan" "2:lan" "3:wan" "8t@eth0"
162 ucidef_set_interfaces_lan_wan
"eth1" "eth0"