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

siflower_setup_interfaces()
{
	local board="$1"

	case $board in
	bananapi,bpi-rv2-n*)
		ucidef_set_interfaces_lan_wan 'eth0 eth1 eth2 eth3 eth5' 'eth4'
		;;
	*)
		ucidef_set_interfaces_lan_wan 'eth0 eth1 eth2' 'eth3'
		;;
	esac
}

board_config_update
board=$(board_name)
siflower_setup_interfaces $board
board_config_flush

exit 0
