1126667Sphk#!/bin/sh 2126667Sphk# 3126667Sphk# Copyright (C) 2014-2016 OpenWrt.org 4126667Sphk# 5126667Sphk 6126667Sphk. /lib/functions/uci-defaults.sh 7126667Sphk. /lib/mvebu.sh 8126667Sphk 9126667Sphkboard_config_update 10126667Sphk 11126667Sphkboard=$(mvebu_board_name) 12126667Sphk 13126667Sphkcase "$board" in 14126667Sphkarmada-385-linksys-caiman|\ 15126667Sphkarmada-385-linksys-cobra|\ 16126667Sphkarmada-385-linksys-rango|\ 17126667Sphkarmada-385-linksys-shelby) 18126667Sphk 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