#!/bin/sh

. /lib/functions/uci-defaults.sh

board_config_update

if grep -q lan1 /proc/net/dev; then
	ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
else
	ucidef_set_interface_lan "eth0"
fi

board_config_flush

exit 0
