
. /lib/functions/uci-defaults.sh
. /lib/functions/system.sh

lan969x_setup_interfaces()
{
	local board="$1"

	case "$board" in
	microchip,ev23x71a|\
	novarq,tactical-1000)
		lan_list=$(ls -1 -v -d /sys/class/net/eth* | xargs -n1 basename | xargs)
		ucidef_set_interface_lan "$lan_list"
		;;
	*)
		echo "Unsupported hardware. Network interfaces not initialized"
		;;
	esac
}

board_config_update
board=$(board_name)
lan969x_setup_interfaces $board
board_config_flush

exit 0
