1#!/bin/sh
2
3. /lib/functions/uci-defaults.sh
4
5board_config_update
6
7if grep -q lan1 /proc/net/dev; then
8	ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
9else
10	ucidef_set_interface_lan "eth0"
11fi
12
13board_config_flush
14
15exit 0
16