ipq807x: add Xiaomi AX3600
[openwrt/staging/jow.git] / target / linux / ipq807x / base-files / etc / board.d / 02_network
1 #
2 # Copyright (c) 2015 The Linux Foundation. All rights reserved.
3 # Copyright (c) 2011-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/functions/system.sh
8
9 ipq807x_setup_interfaces()
10 {
11 local board="$1"
12
13 case "$board" in
14 xiaomi,ax3600)
15 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
16 ;;
17 *)
18 echo "Unsupported hardware. Network interfaces not initialized"
19 ;;
20 esac
21 }
22
23 board_config_update
24 board=$(board_name)
25 ipq807x_setup_interfaces $board
26 board_config_flush
27
28 exit 0