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'
20 set network.lan='interface'
21 set network.lan.ifname='$ifname'
22 set network.lan.type='bridge'
23 set network.lan.proto='static'
24 set network.lan.ipaddr='192.168.1.1'
25 set network.lan.netmask='255.255.255.0'
33 set network.wan='interface'
34 set network.wan.ifname='$ifname'
35 set network.wan.proto='dhcp'
39 set_interfaces_lan_wan
() {
43 set_interface_lan
"$lan_ifname"
44 set_interface_wan
"$wan_ifname"
47 [ -e /etc
/config
/network
] && exit 0
49 touch /etc
/config
/network
51 set_interface_loopback
55 board
=$
(ar71xx_board_name
)
59 set_interfaces_lan_wan
"eth0" "eth1"
This page took 0.048609 seconds and 5 git commands to generate.