ar71xx: enable SWCONFIG_LEDS
[openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / network
1 #!/bin/sh
2 #
3 # Copyright (C) 2011 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/ar71xx.sh
12
13 ucidef_set_interface_loopback
14
15 board=$(ar71xx_board_name)
16
17 case "$board" in
18 all0258n)
19 ucidef_set_interface_lan "eth0 eth1"
20 ;;
21
22 db120)
23 ucidef_set_interfaces_lan_wan "eth1" "eth0"
24 ucidef_add_switch "switch0" "1" "1"
25 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
26 ;;
27
28 dir-825-b1)
29 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
30 ucidef_add_switch "rtl8366s" "1" "1"
31 ucidef_add_switch_vlan "rtl8366s" "1" "0 1 2 3 5t"
32 ;;
33
34 nbg460n_550n_550nh)
35 ucidef_set_interfaces_lan_wan "eth0" "eth1"
36 ucidef_add_switch "rtl8366s" "1" "1"
37 ucidef_add_switch_vlan "rtl8366s" "0" "0 1 2 3 5"
38 ;;
39
40 rb-433 |\
41 rb-433u)
42 ucidef_set_interfaces_lan_wan "eth1" "eth0"
43 ucidef_add_switch "switch0" "1" "1"
44 ucidef_add_switch_vlan "switch0" "1" "1 2 5"
45 ;;
46
47 rb-450)
48 ucidef_set_interfaces_lan_wan "eth1" "eth0"
49 ucidef_add_switch "eth1" "1" "1"
50 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 5"
51 ;;
52
53 rb-450g |\
54 routerstation-pro)
55 ucidef_set_interfaces_lan_wan "eth1" "eth0"
56 ucidef_add_switch "switch0" "1" "1"
57 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
58 ;;
59
60 rb-493g)
61 ucidef_set_interfaces_lan_wan "eth0 eth1.1" "eth1.2"
62 ucidef_add_switch "switch0" "1" "1"
63 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
64 ucidef_add_switch "switch1" "1" "1"
65 ucidef_add_switch_vlan "switch1" "1" "0t 1 2 3 4"
66 ucidef_add_switch_vlan "switch1" "2" "0t 5"
67 ;;
68
69 wzr-hp-g300nh2 |\
70 pb92)
71 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
72 ucidef_add_switch "eth0" "1" "1"
73 ucidef_add_switch_vlan "eth0" "1" "0t 1 3 4 5"
74 ucidef_add_switch_vlan "eth0" "2" "0t 2"
75 ;;
76
77 tl-wa901nd)
78 ucidef_set_interface_raw "eth" "eth0"
79 ucidef_set_interface_lan "lan"
80 ;;
81
82 tl-wr1043nd)
83 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
84 ucidef_add_switch "rtl8366rb" "1" "1"
85 ucidef_add_switch_vlan "rtl8366rb" "1" "1 2 3 4 5t"
86 ucidef_add_switch_vlan "rtl8366rb" "2" "0 5t"
87 ;;
88
89 tl-wr841n-v1|\
90 tl-wr941nd)
91 ucidef_set_interface_raw "eth" "eth0"
92 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
93 ;;
94
95 wrt160nl)
96 ucidef_set_interfaces_lan_wan "eth0" "eth1"
97 ucidef_add_switch "eth0" "1" "1"
98 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
99 ;;
100
101 wzr-hp-g300nh)
102 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
103 ucidef_add_switch "switch0" "1" "1"
104 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
105 ;;
106
107 aw-nr580 |\
108 bullet-m |\
109 eap7660d |\
110 rb-411 |\
111 tl-wa901nd-v2 |\
112 tl-wr703n |\
113 wp543)
114 ucidef_set_interface_lan "eth0"
115 ;;
116
117 ap83 |\
118 jwap003 |\
119 pb42 |\
120 pb44 |\
121 routerstation)
122 ucidef_set_interfaces_lan_wan "eth1" "eth0"
123 ;;
124
125 ap121 |\
126 ap121-mini |\
127 ap96 |\
128 airrouter |\
129 dir-600-a1 |\
130 dir-615-c1 |\
131 ja76pf |\
132 rb750 |\
133 tew-632brp |\
134 tl-mr3220 |\
135 tl-mr3420 |\
136 tl-wr741nd |\
137 tl-wr741nd-v4 |\
138 whr-g301n |\
139 whr-hp-g300n |\
140 whr-hp-gn |\
141 wzr-hp-ag300h)
142 ucidef_set_interfaces_lan_wan "eth0" "eth1"
143 ucidef_add_switch "eth0" "1" "1"
144 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4"
145 ;;
146
147 wzr-hp-g450h)
148 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
149 ucidef_add_switch "eth0" "1" "1"
150 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
151 ucidef_add_switch_vlan "eth0" "2" "0t 1"
152 ;;
153
154 *)
155 ucidef_set_interfaces_lan_wan "eth0" "eth1"
156 ;;
157 esac
158
159 uci commit network
160
161 exit 0
This page took 0.050097 seconds and 5 git commands to generate.