#!/bin/sh
NAMESERVER=/etc/resolv.conf

if [ $ip ]; then
  ifconfig eth0 $ip
  echo "$ip" > /dev/vfd
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  