kirkwood: add pogoplug v4
[openwrt/openwrt.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/functions/system.sh
8
9 board_config_update
10
11 board=$(board_name)
12
13 case "$board" in
14 "seagate,dockstar"|\
15 "seagate,goflexhome"|\
16 "seagate,goflexnet"|\
17 "raidsonic,ib-nas62x0"|\
18 "iom,iconnect-1.1"|\
19 "cloudengines,pogoe02"|\
20 "cloudengines,pogoplugv4")
21 ucidef_set_interface_lan "eth0" "dhcp"
22 ;;
23 "linksys,audi"|\
24 "linksys,viper")
25 ucidef_add_switch "switch0" \
26 "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
27 ;;
28 "zyxel,nsa310b"|"zyxel,nsa325")
29 ucidef_set_interface_lan "eth0" "dhcp"
30 ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
31 ;;
32 "cisco,on100")
33 ucidef_set_interface_lan "eth0 eth1"
34 ;;
35 *)
36 ucidef_set_interface_lan "eth0"
37 ;;
38 esac
39
40 board_config_flush
41
42 exit 0