45d7cbc75a4a5a1ee70835ecf1a3ac9801f5c20c
[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 *)
15 ucidef_set_interface_lan "eth0" "dhcp"
16 ;;
17 esac
18
19 board_config_flush
20
21 exit 0