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-105r1|sophos-xg-105r1| \
21 sophos-sg-105wr1|sophos-xg-105wr1| \
22 sophos-sg-105r2|sophos-xg-105r2| \
23 sophos-sg-105wr2|sophos-xg-105wr2| \
24 sophos-sg-115r1|sophos-xg-115r1| \
25 sophos-sg-115wr1|sophos-xg-115wr1| \
26 sophos-sg-115r2|sophos-xg-115r2| \
27 sophos-sg-115wr2|sophos-xg-115wr2| \
28 sophos-xg-85*|sophos-xg-86*)
29 ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
31 sophos-sg-125r1|sophos-xg-125r1| \
32 sophos-sg-125wr1|sophos-xg-125wr1| \
33 sophos-sg-125r2|sophos-xg-125r2| \
34 sophos-sg-125wr2|sophos-xg-125wr2| \
35 sophos-sg-135r1|sophos-xg-135r1| \
36 sophos-sg-135wr1|sophos-xg-135wr1| \
37 sophos-sg-135r2|sophos-xg-135r2| \
38 sophos-sg-135wr2|sophos-xg-135wr2)
39 ucidef_set_interfaces_lan_wan "eth0 eth2 eth3 eth4 eth5 eth6 eth7" "eth1"
41 traverse-technologies-geos)
42 ucidef_set_interface_lan "eth0 eth1"
43 ucidef_add_atm_bridge "0" "35" "llc" "bridged"
44 ucidef_set_interface_wan "nas0" "dhcp"
45 macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
46 [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"