add support for Comtrend AR5387un.
[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 96328A-1441N1 |\
19 963281TAN |\
20 963281T_TEF |\
21 96348A-122 |\
22 96358-502V |\
23 CT6373-1 |\
24 AW4339U |\
25 CPVA642 |\
26 CT536_CT5621 |\
27 D-4P-W |\
28 "F@ST2604" |\
29 NB6 |\
30 SPW303V |\
31 SPW500V |\
32 V2110 |\
33 96348W3)
34 ucidef_set_interface_lan "eth0"
35 ;;
36
37 AW4139)
38 ucidef_set_interface_lan "eth0.1"
39 ucidef_add_switch "eth0" "1" "1"
40 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
41 ;;
42
43 DVG3810BN)
44 ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
45 ucidef_add_switch "eth1" "1" "1"
46 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
47 ;;
48
49 *)
50 ucidef_set_interfaces_lan_wan "eth1" "eth0"
51 ;;
52
53 esac
54
55 uci commit network
56
57 exit 0