3 # Copyright (C) 2012 OpenWrt.org
6 [ -e /etc
/config
/network
] && exit 0
8 touch /etc
/config
/network
10 .
/lib
/functions
/uci-defaults.sh
13 ucidef_set_interface_loopback
20 ucidef_set_interface_lan
"eth0"
36 ucidef_set_interface_lan
"eth0"
37 ucidef_add_switch
"eth0" "1" "1"
38 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
56 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
57 ucidef_add_switch
"eth1" "1" "1"
58 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
63 ucidef_set_interface_lan
"eth0.1"
64 ucidef_add_switch
"eth0" "1" "1"
65 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5t"
70 ucidef_set_interfaces_lan_wan
"eth1.1" "eth0"
71 ucidef_add_switch
"eth1" "1" "1"
72 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5t"
81 ucidef_set_interface_lan
"eth0.1"
82 ucidef_add_switch
"eth0" "1" "1"
83 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 8t"
87 ucidef_set_interface_lan
"eth0.1"
88 ucidef_add_switch
"eth0" "1" "1"
89 ucidef_add_switch_vlan
"eth0" "1" "1 2 4 5 8t"
93 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
94 ucidef_add_switch
"switch0" "1" "1"
95 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
96 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
100 ucidef_set_interfaces_lan_wan
"eth1" "eth0"