#!/bin/sh
#
# This will "bring up" the network interface when we're already NFS mounted.
#

# Exit if ini file not present.
if [ ! -e /app/config/network.ini ]
then
	echo "/app/config/network.ini file not found..."
	exit 1
fi

# Source the network definitions.
#
. /app/config/network.ini

# Bring up the local interface.
#
ifconfig lo 127.0.0.1 up

# Add a route for it.
#
route add 127.0.0.1 lo

# Create resolv.conf
echo "nameserver $DNS_SERVER1"  > /etc/resolv.conf
echo "nameserver $DNS_SERVER2" >> /etc/resolv.conf

# Add default route (can't UDP broadcast without it).
#
route add default gw $GATEWAY eth0
