1#!/bin/sh 2# 3# Copyright (C) 2014-2016 OpenWrt.org 4# 5 6. /lib/functions/uci-defaults.sh 7. /lib/mvebu.sh 8 9board_config_update 10 11board=$(mvebu_board_name) 12 13case "$board" in 14armada-385-linksys-caiman|\ 15armada-385-linksys-cobra|\ 16armada-385-linksys-rango|\ 17armada-385-linksys-shelby) 18 ucidef_set_interfaces_lan_wan "eth1" "eth0" 19 ucidef_add_switch "switch0" \ 20 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "6@eth1" "4:wan" "5@eth0" 21 ;; 22armada-xp-linksys-mamba) 23 ucidef_set_interfaces_lan_wan "eth0" "eth1" 24 ucidef_add_switch "switch0" \ 25 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth0" "4:wan" "6@eth1" 26 ;; 27armada-385-db-ap) 28 ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2" 29 ;; 30armada-xp-gp) 31 ucidef_set_interface_lan "eth0 eth1 eth2 eth3" 32 ;; 33armada-388-clearfog) 34 ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2" 35 ;; 36*) 37 ucidef_set_interface_lan "eth0" 38 ;; 39esac 40 41board_config_flush 42 43exit 0 44