1#!/bin/sh 2# 3# Copyright (C) 2012 OpenWrt.org 4# 5 6[ -e /etc/config/network ] && exit 0 7 8touch /etc/config/network 9 10. /lib/functions/uci-defaults.sh 11. /lib/brcm63xx.sh 12 13ucidef_set_interface_loopback 14 15case "$board_name" in 16 1796328avng |\ 18963281TAN |\ 1996348A-122 |\ 2096358-502V |\ 21CT6373-1 |\ 22AW4339U |\ 23CPVA642 |\ 24CT536_CT5621 |\ 25D-4P-W |\ 26NB6 |\ 27SPW303V |\ 28SPW500V |\ 29V2110 |\ 3096348W3) 31 ucidef_set_interface_lan "eth0" 32 ;; 33 34AW4139) 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" 38 ;; 39 40DVG3810BN) 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" 44 ;; 45 46*) 47 ucidef_set_interfaces_lan_wan "eth1" "eth0" 48 ;; 49 50esac 51 52uci commit network 53 54exit 0 55