#!/bin/sh

if [ ! -e "/nfsroot" ]; then
    mkdir -p /nfsroot;
fi

if [ $# -eq 0 ];
then
    mount -t nfs -o intr,nolock,tcp,rsize=1024,wsize=1024 192.168.1.164:/work/gk7205v200 /nfsroot;
fi

if [ $# -eq 1 ];
then
    mount -t nfs -o intr,nolock,tcp,rsize=1024,wsize=1024 $1:/work/gk7205v200 /nfsroot;
fi

if [ $# -eq 2 ];
then
    ifconfig eth0 $1 netmask 255.255.255.0 up;
    mount -t nfs -o intr,nolock,tcp,rsize=1024,wsize=1024 $2:/work/gk7205v200 /nfsroot;
fi

