Add F@ST2604 board support.
[openwrt/openwrt.git] / target / linux / brcm63xx / base-files / etc / uci-defaults / network
1 #!/bin/sh
2 #
3 # Copyright (C) 2012 OpenWrt.org
4 #
5
6 [ -e /etc/config/network ] && exit 0
7
8 touch /etc/config/network
9
10 . /lib/functions/uci-defaults.sh
11 . /lib/brcm63xx.sh
12
13 ucidef_set_interface_loopback
14
15 case "$board_name" in
16
17 96328avng |\
18 963281TAN |\
19 96348A-122 |\
20 96358-502V |\
21 CT6373-1 |\
22 AW4339U |\
23 CPVA642 |\
24 CT536_CT5621 |\
25 D-4P-W |\
26 "F@ST2604" |\
27 NB6 |\
28 SPW303V |\
29 SPW500V |\
30 V2110 |\
31 96348W3)
32 ucidef_set_interface_lan "eth0"
33 ;;
34
35 AW4139)
36 ucidef_set_interface_lan "eth0.1"
37 ucidef_add_switch "eth0" "1" "1"
38 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
39 ;;
40
41 DVG3810BN)
42 ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
43 ucidef_add_switch "eth1" "1" "1"
44 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
45 ;;
46
47 *)
48 ucidef_set_interfaces_lan_wan "eth1" "eth0"
49 ;;
50
51 esac
52
53 uci commit network
54
55 exit 0