forked from omron8048/FusionWRT_x86_x64
-
Notifications
You must be signed in to change notification settings - Fork 14
/
02_network
42 lines (38 loc) · 1017 Bytes
/
02_network
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Copyright © 2017 OpenWrt.org
#
. /lib/functions/system.sh
. /lib/functions/uci-defaults.sh
board_config_update
case "$(board_name)" in
pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
;;
roqos-roqos-core-rc10)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
brounion-r86s)
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
;;
sophos-sg-105|sophos-xg-105)
ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
;;
default-string)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
cwwk-minipc-g4)
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3" "eth0"
;;
traverse-technologies-geos)
ucidef_set_interface_lan "eth0 eth1"
ucidef_add_atm_bridge "0" "35" "llc" "bridged"
ucidef_set_interface_wan "nas0" "dhcp"
macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
[ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
;;
xiaoma-m12)
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5 eth6" "eth0"
;;
esac
board_config_flush
exit 0