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
31 ucidef_set_interface_lan "eth0"
35 ucidef_set_interface_lan "eth0.1"
36 ucidef_add_switch "eth0" "1" "1"
37 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
41 ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
42 ucidef_add_switch "eth1" "1" "1"
43 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
47 ucidef_set_interfaces_lan_wan "eth1" "eth0"