summaryrefslogtreecommitdiff
path: root/target/linux/mediatek/base-files/etc/board.d/02_network
blob: 93d3d1e43546ef374f29f231717837c9d98beb4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

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

mediatek_setup_interfaces()
{
	local board="$1"

	case $board in
	mt7623_evb)
		ucidef_set_interfaces_lan_wan "eth1" "eth0"
		ucidef_add_switch "switch0" \
			"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth1" "6@eth0"
		;;
	esac
}

board_config_update
board=$(mediatek_board_name)
mediatek_setup_interfaces $board
board_config_flush

exit 0