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