2016-03-21 20:42:51 +00:00
|
|
|
#!/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
|
2016-05-23 09:20:20 +00:00
|
|
|
eMMC | \
|
|
|
|
NAND | \
|
2016-03-21 20:42:51 +00:00
|
|
|
mt7623_evb)
|
2017-02-07 07:55:46 +00:00
|
|
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2"
|
2016-03-21 20:42:51 +00:00
|
|
|
ucidef_add_switch "switch0" \
|
2016-03-22 21:14:51 +00:00
|
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" "5@eth1"
|
2016-03-21 20:42:51 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
board=$(mediatek_board_name)
|
|
|
|
mediatek_setup_interfaces $board
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|