qualcommax: ipq60xx: add support for netgear wax214
[openwrt/openwrt.git] / target / linux / qualcommax / ipq60xx / 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 ipq60xx_setup_interfaces()
10 {
11 local board="$1"
12
13 case "$board" in
14 8devices,mango-dvk)
15 ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
16 ;;
17 netgear,wax214)
18 ucidef_set_interfaces_lan_wan "lan"
19 ;;
20 *)
21 echo "Unsupported hardware. Network interfaces not initialized"
22 ;;
23 esac
24 }
25
26 board_config_update
27 board=$(board_name)
28 ipq60xx_setup_interfaces $board
29 board_config_flush
30
31 exit 0