#!/bin/sh
#
# Start the network....
#

#MAC=`/wr/bin/get_board_mac`
#echo "Management port MAC address: $MAC"
#ifconfig eth0 hw ether $MAC
#ifplugd -i eth0
#udhcpc -n

if grep -q '/ nfs' /proc/mounts; then
	echo "Running via NFS, no ifplugd."
else
	echo "Starting ifplugd..."
	/usr/sbin/ifplugd -I -f -i eth0
	#Pull up the interface (check static/dynamic config in /etc/network/interfaces)
	ifup eth0
fi
