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