0ebdf0c1d3
No image build code for the Guruplug, Sheevaplug and NSA310S exists. Drop support for the boards for now. Signed-off-by: Mathias Kresin <dev@kresin.me>
41 lines
689 B
Bash
Executable file
41 lines
689 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/functions/system.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
"dockstar"|\
|
|
"goflexhome"|\
|
|
"goflexnet"|\
|
|
"ib62x0"|\
|
|
"iconnect"|\
|
|
"pogo_e02")
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
|
;;
|
|
"linksys-audi"|\
|
|
"linksys-viper")
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
|
|
;;
|
|
"nsa310b"|"nsa325")
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
|
ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
|
|
;;
|
|
"on100")
|
|
ucidef_set_interface_lan "eth0 eth1"
|
|
;;
|
|
*)
|
|
ucidef_set_interface_lan "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|