#!/bin/bash
# Run ifstatus against an adapter running dhcp client
#
#  2/12/05 Change to run ifconfig instead of ifstatus - support new MCP level
#  5/26/05 Grep for "$adapter " (not "adapter") False hit on eth1:0 on the SE
#  6/23/05 Comment out the echo on the new method - messes up startInetAddr in NetworkSettings
#  1/31/06 Force all of ifconfig to display - used to get MAC address

adapter=$1

#  OLD METHOD
#echo '/sbin/ifstatus-dhcp' "$adapter"
#/sbin/ifstatus-dhcp $adapter

#  New Method
# echo 'ifconfig | grep -A 3' '"'"$adapter"' "' ' | grep "inet addr"'
#ifconfig | grep -A 3 "$adapter " | grep "inet"
ifconfig | grep -A 3 "$adapter "
