3 # Copyright (C) 2011 OpenWrt.org
6 set_interface_loopback
() {
8 set network.loopback='interface'
9 set network.loopback.ifname='lo'
10 set network.loopback.proto='static'
11 set network.loopback.ipaddr='127.0.0.1'
12 set network.loopback.netmask='255.0.0.0'
21 set network.$cfg='interface'
22 set network.$cfg.ifname='$ifname'
23 set network.$cfg.proto='none'
31 set network.lan='interface'
32 set network.lan.ifname='$ifname'
33 set network.lan.type='bridge'
34 set network.lan.proto='static'
35 set network.lan.ipaddr='192.168.1.1'
36 set network.lan.netmask='255.255.255.0'
44 set network.wan='interface'
45 set network.wan.ifname='$ifname'
46 set network.wan.proto='dhcp'
57 set network.atm='atm-bridge'
58 set network.atm.unit='0'
59 set network.atm.vpi='$vpi'
60 set network.atm.vci='$vci'
61 set network.atm.encaps='$encaps'
62 set network.atm.payload='$payload'
63 set network.wan='interface'
64 set network.wan.ifname='nas0'
65 set network.wan.proto='pppoe'
66 set network.wan.username='foo'
67 set network.wan.password='bar'
71 set_interfaces_lan_wan
() {
75 set_interface_lan
"$lan_ifname"
76 set_interface_wan
"$wan_ifname"
85 set network.@switch[-1].name='$name'
86 set network.@switch[-1].reset='$reset'
87 set network.@switch[-1].enable_vlan='$enable'
96 add network switch_vlan
97 set network.@switch_vlan[-1].device='$device'
98 set network.@switch_vlan[-1].vlan='$vlan'
99 set network.@switch_vlan[-1].ports='$ports'
103 [ -e /etc
/config
/network
] && exit 0
107 touch /etc
/config
/network
109 set_interface_loopback
110 set_interface_lan
'eth0'
112 dsl
=$
(lantiq_soc_has_adsl
)
113 [ -z "$dsl" ] || set_atm_wan
'1' '32' 'llc' 'bridged'
115 board
=$
(lantiq_board_name
)
119 # custom foo goes here
This page took 0.069376 seconds and 5 git commands to generate.