3 # Copyright © 2017 OpenWrt.org
6 . /lib/functions/system.sh
7 . /lib/functions/uci-defaults.sh
11 board="$(cat /tmp/sysinfo/board_name)" 2>/dev/null
15 ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
17 traverse-technologies-geos)
18 ucidef_set_interface_lan "eth0 eth1"
19 ucidef_add_atm_bridge "0" "35" "llc" "bridged"
20 ucidef_set_interface_wan "nas0" "dhcp"
21 macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
22 [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"