How to Configure Networking in Midori
-------------------------------------


First, to enable networking support, enable the networking package,
and this package.

This will configure one default interface - eth0, which defaults to 
using pump as its means to connect to the network.  This default can
be overridden, and the method to do so is the same for adding support
for other devices.

The networking build script looks in the directory

$TOPDIR/etc/

For files named net.<type><n> to describe each network interface.

<type> is the type of interface (eth, wlan, ppp) and <n> is the device
index.  For example, net.eth0 describes the first ethernet device in 
the system (typically the first installed network card), net.wlan0 
describes the first wireless lan device.

The script checks first for the existence of a net.eth0 file.  If there
is not one there, then it copies in the default configuration file.

Then, for every file of that naming convention, it copies them to
$ROOT/config/net/<type><n>, where they will be read by the network start
script on boot.

The script will then check for the existence of the file 

$TOPDIR/etc/network

If this file is not found, it uses a default.  This file describes the 
characteristics of your network, and also copied to $ROOT/config to be
read on boot.  It's format is described later.

- Device File Format

The device file has the following parameters:
DEVICE
TYPE
DOMAIN
IPADDR
GATEWAY
NETWORK
NETMASK
BROADCAST
DNS

DEVICE is the name of the device (i.e. eth0)
TYPE is the protocol to use (can be one of static, dhcp, or none)

The rest are only relevant if you are using a static IP address, and
should be self explanatory, with the exception of the DNS variable.  

DNS is a list of IP Addresses, so you could theoretically have an infinite
number in that variable.  For each one, and entry is created in 
$ROOT/etc/resolv.conf on boot. Make sure to enclose the DNS servers in
'"' and to separate them with spaces, not ';' or ','. Example:

        DNS="10.1.1.1 10.1.2.1"

Note that to disable a device from being configured into the installation,
set type to 'none'.  So, if you have only a wireless card (using device
wlan0), and that's the only card you want configured, create file named
net.eth0 with TYPE=none in it.  The network install script will try to
set up eth0 by default, but seeing that you have already have a 
configuration for it, and its type is 'none', it will stop.

Note that you can configure as many network devices as you want in this
manner.

- Network File Format

The network file has the following variables:
HOSTNAME
FORWARD_IPV4
GATEWAYDEV

They should all be self explanatory (and very similar to the names that 
Redhat uses for network configuration).


