x86: Add APU3 reference to x86 board.d
[openwrt/openwrt.git] / target / linux / x86 / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 #
3 # Copyright © 2017 OpenWrt.org
4 #
5
6 . /lib/functions/system.sh
7 . /lib/functions/uci-defaults.sh
8
9 board_config_update
10
11 case "$(board_name)" in
12 pc-engines-apu|pc-engines-apu2|pc-engines-apu3)
13 ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
14 ;;
15 traverse-technologies-geos)
16 ucidef_set_interface_lan "eth0 eth1"
17 ucidef_add_atm_bridge "0" "35" "llc" "bridged"
18 ucidef_set_interface_wan "nas0" "dhcp"
19 macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
20 [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
21 ;;
22 esac
23 board_config_flush
24
25 exit 0