3 # Copyright (c) 2015 The Linux Foundation. All rights reserved.
4 # Copyright (C) 2011 OpenWrt.org
7 [ -e /etc
/config
/network
] && exit 0
9 touch /etc
/config
/network
11 .
/lib
/functions
/uci-defaults.sh
14 ucidef_set_interface_loopback
16 board
=$
(ipq806x_board_name
)
21 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
22 ucidef_add_switch
"switch0" "1" "1"
23 ucidef_add_switch_vlan
"switch0" "1" "6 1 2 3 4"
24 ucidef_add_switch_vlan
"switch0" "2" "0 5"
27 ucidef_set_interfaces_lan_wan
"eth1 eth2 eth3" "eth0"
28 ucidef_add_switch
"switch0" "1" "1"
29 ucidef_add_switch_vlan
"switch0" "1" "6 1 2 3 4"
30 ucidef_add_switch_vlan
"switch0" "2" "0 5"
33 echo "Unsupported hardware. Network interfaces not intialized"