#!/bin/sh
# quick hack to dump the enet eeprom for natsemi controllers
# usage: $0 eth0

if [ $# -ne 1 ]; then
	echo usage: $0 eth?
	echo
	exit 1
fi

BASE=`ifconfig $1 | grep "Base address:" | awk -F: '{print $3}'`

# make assumptions
./enet_eeprom -p $BASE -d natsemi -r all
