gemini: Bring up DSA switches
[openwrt/staging/stintel.git] / target / linux / gemini / base-files / etc / board.d / 02_network
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4
5 board_config_update
6
7 case "$(board_name)" in
8 dlink,dir-685)
9 # These are all connected to eth0 thru RTL8366RB
10 ucidef_set_interface "eth" ifname "eth0" protocol "none"
11 ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "wan"
12 ;;
13 itian,sq201)
14 # These are all connected to eth1 thru VSC7395
15 ucidef_set_interface "eth" ifname "eth1" protocol "none"
16 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
17 ;;
18 storlink,gemini324)
19 # These are all connected to eth1 thru VSC7385
20 ucidef_set_interface "eth" ifname "eth1" protocol "none"
21 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
22 ;;
23 esac
24
25 board_config_flush
26
27 exit 0