#!/bin/sh #Copyright (c) 2001, University of Washington, UW/EE # look up the interface, grab the mac address and spit it back out. for i in 0 1 2 do if `/sbin/ifconfig eth$i > /dev/null 2>&1` then echo "eth$i `/sbin/ifconfig eth$i | grep HWaddr | awk '{print $5}'`" fi done