# # Copyright (c) 2015 The Linux Foundation. All rights reserved. # Copyright (c) 2011-2015 OpenWrt.org # . /lib/functions/uci-defaults.sh . /lib/functions/system.sh ipq60xx_setup_interfaces() { local board="$1" case "$board" in *"GL-AX1800"*) ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0" ;; wf,hr6001) ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "eth4" ;; *) echo "Unsupported hardware. Network interfaces not initialized" ;; esac } board_config_update board=$(board_name) ipq60xx_setup_interfaces $board board_config_flush exit 0