1#!/bin/sh
2#
3# Copyright (C) 2013-2015 OpenWrt.org
4#
5
6. /lib/functions/uci-defaults.sh
7
8board_config_update
9
10json_is_a network object && exit 0
11
12ucidef_set_interface_lan 'eth0'
13[ -d /sys/class/net/eth1 ] && ucidef_set_interface_wan 'eth1'
14
15board_config_flush
16
17exit 0
18