octeon: add new target and support for Ubiquiti EdgeRouter 6P
[openwrt/openwrt.git] / target / linux / octeon / base-files / etc / board.d / 01_network
1 #
2 # Copyright (C) 2014-2015 OpenWrt.org
3 #
4
5 . /lib/functions/uci-defaults.sh
6
7 board_config_update
8
9 case "$(board_name)" in
10 itus,shield-router)
11 ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
12 ;;
13 ubnt,edgerouter-4)
14 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "lan0"
15 ;;
16 ubnt,edgerouter-6p)
17 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" "lan0"
18 ;;
19 *)
20 ucidef_set_interfaces_lan_wan "eth0" "eth1"
21 ;;
22 esac
23
24 board_config_flush
25
26 exit 0