git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4683
3c298f89-4303-0410-b956-
a3cf2f4a3e73
12 files changed:
# Network configuration file
# Network configuration file
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option ifname eth0
option proto static
config interface lan
option ifname eth0
option proto static
# Network configuration file
# Network configuration file
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option ifname eth0
option proto dhcp
config interface lan
option ifname eth0
option proto dhcp
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006 OpenWrt.org
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option type bridge
option ifname "eth0 ath0"
config interface lan
option type bridge
option ifname "eth0 ath0"
p("vlan1", "vlan1ports")
print ""
print ""
p("vlan1", "vlan1ports")
print ""
print ""
+ print "#### Loopback configuration"
+ print "config interface loopback"
+ print " option ifname \"lo\""
+ print " option proto static"
+ print " option ipaddr 127.0.0.1"
+ print " option netmask 255.0.0.0"
+ print ""
+ print ""
print "#### LAN configuration"
print "config interface lan"
print " option type bridge"
print "#### LAN configuration"
print "config interface lan"
print " option type bridge"
p("vlan1", "vlan1ports")
print ""
print ""
p("vlan1", "vlan1ports")
print ""
print ""
+ print "#### Loopback configuration"
+ print "config interface loopback"
+ print " option ifname \"lo\""
+ print " option proto static"
+ print " option ipaddr 127.0.0.1"
+ print " option netmask 255.0.0.0"
+ print ""
+ print ""
print "#### LAN configuration"
print "config interface lan"
print " option type bridge"
print "#### LAN configuration"
print "config interface lan"
print " option type bridge"
done
load_modules /etc/modules /etc/modules.d/*
done
load_modules /etc/modules /etc/modules.d/*
-
-ifconfig lo 127.0.0.1 up
-ifconfig eth0 promisc
-
interface)
config_get proto "$CONFIG_SECTION" proto
append interfaces "$CONFIG_SECTION"
interface)
config_get proto "$CONFIG_SECTION" proto
append interfaces "$CONFIG_SECTION"
- config_get iftype "$CONFIG_SECTION" iftype
+ config_get iftype "$CONFIG_SECTION" type
case "$iftype" in
bridge)
config_get ifname "$CONFIG_SECTION" ifname
case "$iftype" in
bridge)
config_get ifname "$CONFIG_SECTION" ifname
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006 OpenWrt.org
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option ifname eth0
option proto dhcp
config interface lan
option ifname eth0
option proto dhcp
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006 OpenWrt.org
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option type bridge
option ifname "eth0 ath0"
config interface lan
option type bridge
option ifname "eth0 ath0"
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006 OpenWrt.org
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option type bridge
option ifname "eth1 eth2"
config interface lan
option type bridge
option ifname "eth1 eth2"
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006 OpenWrt.org
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option type bridge
option ifname "eth1 eth2"
config interface lan
option type bridge
option ifname "eth1 eth2"
# Network configuration file
# Network configuration file
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
config interface lan
option ifname eth0
option proto dhcp
config interface lan
option ifname eth0
option proto dhcp