use net config from chroot

This commit is contained in:
Tobias Powalowski 2012-08-15 22:23:51 +02:00
parent d1a0edcfbc
commit 2d6b2e32f7
12 changed files with 11 additions and 219 deletions

View file

@ -29,25 +29,25 @@ build ()
add_file "/usr/sbin/brctl"
add_file "/etc/rc.d/network"
add_file "/etc/rc.d/netfs"
add_file "/usr/share/archboot/net/etc/conf.d/dhcpcd" "/etc/conf.d/dhcpcd"
add_file "/usr/share/archboot/net/etc/conf.d/bonding" "/etc/conf.d/bonding"
add_file "/usr/share/archboot/net/etc/conf.d/bridges" "/etc/conf.d/bridges"
add_file "/etc/conf.d/dhcpcd"
add_file "/etc/conf.d/bonding"
add_file "/etc/conf.d/bridges"
for i in $(find /usr/lib/dhcpcd -type f); do
add_file "$i"
done
add_file "/usr/share/archboot/net/etc/dhcpcd.conf" "/etc/dhcpcd.conf"
add_file "/etc/dhcpcd.conf"
add_dir "/var/lib/dhcpcd"
add_file "/usr/lib/tc/q_atm.so"
add_file "/usr/share/tc/experimental.dist"
add_file "/usr/share/tc/normal.dist"
add_file "/usr/share/tc/pareto.dist"
add_file "/usr/share/tc/paretonormal.dist"
add_file "/usr/share/archboot/net/etc/iproute2/ematch_map" "/etc/iproute2/ematch_map"
add_file "/usr/share/archboot/net/etc/iproute2/rt_dsfield" "/etc/iproute2/rt_dsfield"
add_file "/usr/share/archboot/net/etc/iproute2/rt_protos" "/etc/iproute2/rt_protos"
add_file "/usr/share/archboot/net/etc/iproute2/rt_realms" "/etc/iproute2/rt_realms"
add_file "/usr/share/archboot/net/etc/iproute2/rt_scopes" "/etc/iproute2/rt_scopes"
add_file "/usr/share/archboot/net/etc/iproute2/rt_tables" "/etc/iproute2/rt_tables"
add_file "/etc/iproute2/ematch_map"
add_file "/etc/iproute2/rt_dsfield"
add_file "/etc/iproute2/rt_protos"
add_file "/etc/iproute2/rt_realms"
add_file "/etc/iproute2/rt_scopes"
add_file "/etc/iproute2/rt_tables"
# add dnssec-anchors
add_file "/etc/trusted-key.key"
# add dhclient support
@ -57,7 +57,7 @@ build ()
# add ifplugd support
add_file "/etc/rc.d/ifplugd"
add_file "/etc/ifplugd/ifplugd.action"
add_file "/usr/share/archboot/net/etc/ifplugd/ifplugd.conf" "/etc/ifplugd/ifplugd.conf"
add_file "/etc/ifplugd/ifplugd.conf"
# fixing licenses
add_file "/usr/share/licenses/db/LICENSE"
add_file "/usr/share/licenses/dhcpcd/LICENSE"

View file

@ -1,12 +0,0 @@
#
# Settings for ethernet bonding
#
# For each bond interface declared in INTERFACES (in rc.conf), declare
# a bond_${IF} variable that contains the real ethernet interfaces that
# should be bonded to the bond interface with the ifenslave utility.
# Then list the bond interface name in the BOND_INTERFACES array.
#
#bond_bond0="eth0 eth1"
#BOND_INTERFACES=(bond0)

View file

@ -1,27 +0,0 @@
#
# Settings for layer-2 bridges
#
# For each bridge interface declared in INTERFACES (in rc.conf), declare
# a bridge_${IF} variable that contains the real ethernet interfaces that
# should be bridged togeether.
#
# Then list the bridge interface name in the BRIDGE_INTERFACES array.
#
# example:
#
# in /etc/rc.conf:
# eth0="eth0 up"
# eth1="eth1 up"
# br0="br0 192.168.0.2 netmask 255.255.255.0 up"
# INTERFACES=(lo eth0 eth1 br0)
#
# in /etc/conf.d/bridges
# bridge_br0="eth0 eth1"
# BRIDGE_INTERFACES=(br0)
#
#bridge_br0="eth0 eth1"
#BRIDGE_INTERFACES=(br0)

View file

@ -1,6 +0,0 @@
#
# Arguments to be passed to the DHCP client daemon
#
DHCPCD_ARGS="-q"

View file

@ -1,24 +0,0 @@
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Inform the DHCP server of our hostname for DDNS.
hostname
# To share the DHCP lease across OSX and Windows a ClientID is needed.
# Enabling this may get a different lease than the kernel DHCP client.
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
#clientid
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
noipv4ll

View file

@ -1,42 +0,0 @@
# -*-sh-*-
# $Id: ifplugd.conf 43 2003-09-13 11:25:11Z lennart $
# This file is part of ifplugd.
#
# ifplugd is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# ifplugd is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with ifplugd; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# ifplugd configuration file
# Please note that this is a bourne shell fragment sourced by the
# init script of ifplugd.
# Specify the interfaces to control here, separated by spaces.
# Ifplugd processes will be started for each of these interfaces when
# the ifplugd init script is called with the "start" argument. You may
# use the magic string "auto" to make the init script start or stop
# ifplugd processes for ALL eth and wlan interfaces that are available
# according to /proc/net/dev. Note that the list of interfaces
# appearing in /proc/net/dev may depend on which kernel modules you
# have loaded.
NET_IFS="eth0"
# Additional parameters for ifplugd.
# (Run "ifplugd -h" for further information.)
ARGS="-fwI -u0 -d10"
# Additional parameters for ifplugd for the specified interface. Note
# that $ARGS is ignored, when a variable like this is set for an
# interface
#ARGS_wlan0="-MwI -u5 -d5"

View file

@ -1,5 +0,0 @@
# lookup table for ematch kinds
1 cmp
2 nbyte
3 u32
4 meta

View file

@ -1,27 +0,0 @@
0x00 default
0x10 lowdelay
0x08 throughput
0x04 reliability
# This value overlap with ECT, do not use it!
0x02 mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20 priority
0x40 immediate
0x60 flash
0x80 flash-override
0xa0 critical
0xc0 internet
0xe0 network
# Newer RFC2597 values
0x28 AF11
0x30 AF12
0x38 AF13
0x48 AF21
0x50 AF22
0x58 AF23
0x68 AF31
0x70 AF32
0x78 AF33
0x88 AF41
0x90 AF42
0x98 AF43

View file

@ -1,30 +0,0 @@
#
# Reserved protocols.
#
0 unspec
1 redirect
2 kernel
3 boot
4 static
8 gated
9 ra
10 mrt
11 zebra
12 bird
13 dnrouted
14 xorp
15 ntk
16 dhcp
#
# Used by me for gated
#
254 gated/aggr
253 gated/bgp
252 gated/ospf
251 gated/ospfase
250 gated/rip
249 gated/static
248 gated/conn
247 gated/inet
246 gated/default

View file

@ -1,13 +0,0 @@
#
# reserved values
#
0 cosmos
#
# local
#
#1 inr.ac
#2 inr.ruhep
#3 freenet
#4 radio-msu
#5 russia
#6 internet

View file

@ -1,11 +0,0 @@
#
# reserved values
#
0 global
255 nowhere
254 host
253 link
#
# pseudo-reserved
#
200 site

View file

@ -1,11 +0,0 @@
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep