ipq806x: Add support for Netgear D7800
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 #
3 # Copyright (c) 2015 The Linux Foundation. All rights reserved.
4 # Copyright (c) 2011-2015 OpenWrt.org
5 #
6
7 . /lib/functions/uci-defaults.sh
8 . /lib/ipq806x.sh
9
10 board_config_update
11
12 board=$(ipq806x_board_name)
13
14 case "$board" in
15 ap148 |\
16 d7800 |\
17 r7500)
18 ucidef_add_switch "switch0" \
19 "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
20 ;;
21 db149)
22 ucidef_set_interface_lan "eth1 eth2 eth3"
23 ucidef_add_switch "switch0" \
24 "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
25 ;;
26 *)
27 echo "Unsupported hardware. Network interfaces not intialized"
28 ;;
29 esac
30
31 board_config_flush
32
33 exit 0