Root/target/linux/brcm63xx/base-files/etc/uci-defaults/network

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 |\
1896328A-1241N |\
1996328A-1441N1 |\
20963281TAN |\
21963281T_TEF |\
2296348A-122 |\
2396358-502V |\
24CT6373-1 |\
25AW4339U |\
26CPVA642 |\
27CT536_CT5621 |\
28D-4P-W |\
29"F@ST2604" |\
30NB6 |\
31SPW303V |\
32SPW500V |\
33V2110 |\
3496348W3)
35    ucidef_set_interface_lan "eth0"
36    ;;
37
38AW4139)
39    ucidef_set_interface_lan "eth0.1"
40    ucidef_add_switch "eth0" "1" "1"
41    ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
42    ;;
43
44DVG3810BN)
45    ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
46    ucidef_add_switch "eth1" "1" "1"
47    ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
48    ;;
49
50*)
51    ucidef_set_interfaces_lan_wan "eth1" "eth0"
52    ;;
53
54esac
55
56uci commit network
57
58exit 0
59

Archive Download this file



interactive