You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
550 B
Bash
32 lines
550 B
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
|
# Copyright (C) 2016 LEDE-Project.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
marvell,armada8040-mcbin-doubleshot|\
|
|
marvell,armada8040-mcbin-singleshot)
|
|
ucidef_set_interfaces_lan_wan "eth0 eth1 eth3" "eth2"
|
|
;;
|
|
marvell,armada8040-db)
|
|
ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
|
|
;;
|
|
marvell,armada7040-db)
|
|
ucidef_set_interfaces_lan_wan "eth0 eth2" "eth1"
|
|
;;
|
|
*)
|
|
ucidef_set_interface_lan "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|