1#!/bin/sh
2#
3# Copyright (C) 2012-2015 OpenWrt.org
4#
5
6. /lib/functions/uci-defaults.sh
7. /lib/kirkwood.sh
8
9board_config_update
10
11board=$(kirkwood_board_name)
12
13case "$board" in
14"dockstar"|\
15"goflexhome"|\
16"goflexnet"|\
17"iconnect"|\
18"ib62x0"|\
19"nsa310s"|\
20"pogo_e02")
21	ucidef_set_interface_lan "eth0" "dhcp"
22	;;
23"linksys-audi")
24	ucidef_add_switch "switch0" \
25		"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
26	;;
27"linksys-viper")
28	ucidef_add_switch "switch0" \
29		"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
30	;;
31"guruplug-server-plus")
32	ucidef_set_interface_lan "eth0 eth1" "dhcp"
33	;;
34"sheevaplug" | \
35"sheevaplug-esata")
36	ucidef_set_interface_lan "eth0" "dhcp"
37	;;
38*)
39	ucidef_set_interface_lan "eth0" "static"
40	;;
41esac
42
43board_config_flush
44
45exit 0
46