x86: Add configuration back for Traverse Geos
[openwrt/staging/dedeckeh.git] / target / linux / x86 / geode / 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 board="$(cat /tmp/sysinfo/board_name)" 2>/dev/null
12
13 case "$board" in
14 traverse-technologies-geos)
15 ucidef_set_interface_lan "eth0 eth1"
16 ucidef_add_atm_bridge "0" "35" "llc" "bridged"
17 ucidef_set_interface_wan "nas0" "dhcp"
18 macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
19 [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
20 ;;
21 esac
22 board_config_flush
23
24 exit 0