2 # Copyright © 2017 OpenWrt.org
5 . /lib/functions/system.sh
6 . /lib/functions/uci-defaults.sh
10 case "$(board_name)" in
12 ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth4 eth5 eth7 eth8 eth9 eth10 eth11" "eth6"
14 pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
15 ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
17 roqos-roqos-core-rc10)
18 ucidef_set_interfaces_lan_wan "eth1" "eth0"
20 sophos-sg-105|sophos-xg-105)
21 ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
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"