x86: add support for Meraki MX100
[openwrt/staging/stintel.git] / target / linux / x86 / base-files / etc / board.d / 02_network
1 #
2 # Copyright © 2017 OpenWrt.org
3 #
4
5 . /lib/functions/system.sh
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 case "$(board_name)" in
11 cisco-mx100-hw)
12 ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth4 eth5 eth7 eth8 eth9 eth10 eth11" "eth6"
13 ;;
14 pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
15 ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
16 ;;
17 roqos-roqos-core-rc10)
18 ucidef_set_interfaces_lan_wan "eth1" "eth0"
19 ;;
20 sophos-sg-105|sophos-xg-105)
21 ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
22 ;;
23 traverse-technologies-geos)
24 ucidef_set_interface_lan "eth0 eth1"
25 ucidef_add_atm_bridge "0" "35" "llc" "bridged"
26 ucidef_set_interface_wan "nas0" "dhcp"
27 macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
28 [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
29 ;;
30 esac
31 board_config_flush
32
33 exit 0