apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
[openwrt/openwrt.git] / target / linux / apm821xx / base-files / etc / board.d / 02_network
1 #!/bin/sh
2
3 . /lib/functions/system.sh
4 . /lib/functions/uci-defaults.sh
5 . /lib/apm821xx.sh
6
7 board_config_update
8
9 board=$(apm821xx_board_name)
10
11 case "$board" in
12 mbl | \
13 mr24)
14 ucidef_set_interface_lan "eth0"
15 ;;
16
17 wndr4700)
18 ucidef_add_switch "switch0" \
19 "0@eth0" "4:lan" "3:lan" "2:lan" "1:lan" "5:wan"
20 ;;
21
22 *)
23 ucidef_set_interfaces_lan_wan "eth0" "eth1"
24 ;;
25 esac
26
27 board_config_flush
28
29 exit 0