#!/bin/sh
. /var/etc/autostart/start-config
if  [ ! "$debug" == 'off' ]; then                      
	echo "start /etc/init.d/dhcp"
fi
if  [ -e /var/etc/autostart/start-config ] && [ "$debug" == 'high' ]; then                      
	set -x
fi
NAMESERVER=/etc/resolv.conf

if [ "$ip" ]; then
  ifconfig eth0 $ip
fi
if [ "$subnet" ]; then
	ifconfig eth0 netmask $subnet
fi
if [ "$router" ]; then
	route del default gw 0.0.0.0
	route add default gw $router
fi

if [ "$dns" ]; then
	echo nameserver $dns > $NAMESERVER
fi  
