ixp4xx: Add USRobotics USR8200 support
[openwrt/staging/nbd.git] / target / linux / ixp4xx / base-files / etc / board.d / 02_network
1 # SPDX-License-Identifier: GPL-2.0-only
2 . /lib/functions/uci-defaults.sh
3
4 board_config_update
5
6 case "$(board_name)" in
7 gateworks,gw2348|\
8 gateworks,gw2358)
9 ucidef_set_interfaces_lan_wan "eth0" "eth1"
10 ;;
11 linksys,nslu2)
12 ucidef_set_interface_lan "eth0" "dhcp"
13 ;;
14 usr,usr8200)
15 # LAN ports connected to eth1 thru the MV88E6060 DSA switch
16 ucidef_set_interface "eth" device "eth1" protocol "none"
17 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
18 ;;
19 *)
20 ucidef_set_interface_lan "eth0" "dhcp"
21 ;;
22 esac
23
24 board_config_flush
25
26 exit 0