You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
846 B
45 lines
846 B
10 years ago
|
#!/bin/sh
|
||
|
#
|
||
10 years ago
|
# Copyright (C) 2014-2015 OpenWrt.org
|
||
10 years ago
|
#
|
||
|
|
||
9 years ago
|
. /lib/functions/uci-defaults-new.sh
|
||
10 years ago
|
. /lib/mvebu.sh
|
||
|
|
||
9 years ago
|
board_config_update
|
||
|
|
||
10 years ago
|
ucidef_set_interface_loopback
|
||
|
|
||
|
board=$(mvebu_board_name)
|
||
|
|
||
|
case "$board" in
|
||
10 years ago
|
armada-385-linksys-caiman)
|
||
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
||
|
;;
|
||
|
armada-385-linksys-cobra)
|
||
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
||
|
;;
|
||
9 years ago
|
armada-385-linksys-shelby)
|
||
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
||
|
;;
|
||
10 years ago
|
armada-xp-linksys-mamba)
|
||
10 years ago
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
||
10 years ago
|
ucidef_add_switch "switch0" "1" "1"
|
||
|
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5"
|
||
|
ucidef_add_switch_vlan "switch0" "2" "4 6"
|
||
10 years ago
|
;;
|
||
10 years ago
|
armada-385-db-ap)
|
||
|
ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
|
||
|
;;
|
||
10 years ago
|
armada-xp-gp)
|
||
|
ucidef_set_interface_lan "eth0 eth1 eth2 eth3"
|
||
|
;;
|
||
10 years ago
|
*)
|
||
|
ucidef_set_interface_lan "eth0"
|
||
|
;;
|
||
|
esac
|
||
|
|
||
9 years ago
|
board_config_flush
|
||
10 years ago
|
|
||
|
exit 0
|