ipq807x: add Redmi AX6
[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 redmi,ax6|\
15 xiaomi,ax3600)
16 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
17 ;;
18 *)
19 echo "Unsupported hardware. Network interfaces not initialized"
20 ;;
21 esac
22 }
23
24 board_config_update
25 board=$(board_name)
26 ipq807x_setup_interfaces $board
27 board_config_flush
28
29 exit 0