ipq40xx: add target
[openwrt/openwrt.git] / target / linux / ipq40xx / 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/functions/system.sh
9
10 board_config_update
11
12 board=$(board_name)
13
14 case "$board" in
15 avm,fritzbox-4040)
16 ucidef_set_interfaces_lan_wan "eth0" "eth1"
17 ucidef_add_switch "switch0" \
18 "0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
19 ;;
20 glinet,gl-b1300 |\
21 openmesh,a42)
22 ucidef_set_interfaces_lan_wan "eth1" "eth0"
23 ;;
24 *)
25 echo "Unsupported hardware. Network interfaces not intialized"
26 ;;
27 esac
28
29 board_config_flush
30
31 exit 0