2016-03-21 20:42:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. /lib/functions.sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
|
|
|
|
mediatek_setup_interfaces()
|
|
|
|
{
|
|
|
|
local board="$1"
|
|
|
|
|
|
|
|
case $board in
|
2018-01-08 14:06:24 +00:00
|
|
|
'mediatek,mt7623a-rfb-emmc')
|
2017-04-21 07:38:52 +00:00
|
|
|
ucidef_set_interface_lan "lan0 lan1 lan2 lan3"
|
|
|
|
ucidef_set_interface_wan eth1
|
|
|
|
;;
|
2018-01-08 14:06:24 +00:00
|
|
|
'bananapi,bpi-r2')
|
2017-04-21 07:38:52 +00:00
|
|
|
ucidef_set_interface_lan "lan0 lan1 lan2 lan3"
|
2017-04-07 15:42:08 +00:00
|
|
|
ucidef_set_interface_wan wan
|
2016-03-21 20:42:51 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
board_config_update
|
2017-04-07 15:42:08 +00:00
|
|
|
board=$(board_name)
|
2016-03-21 20:42:51 +00:00
|
|
|
mediatek_setup_interfaces $board
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|