#!/bin/sh

# This routine displays the ethernet devices.
# This is useful for checking the ethernet addresses.

uname -A

# This utility works on RISC/OS 4.50.

/etc/devstr `netstat -i | egrep -v 'Name|lo0' | colrm 6 | sed 's/\*//g'`

# This works on older OS's

if test -s BITPATH
then
  CURPATH=`cat BITPATH`
else
  CURPATH=`pwd`
fi

if test -s $CURPATH/SYSNAME
then
  SYSNAME=`cat $CURPATH/SYSNAME`
else
  SYSNAME=`hostname`
fi

NETHOST=`grep "^NETHOST" $CURPATH/CONFIGURATION | sed "s/^.*> //g"`

rsh $NETHOST "arp -a | grep $SYSNAME"
