#!/bin/sh

ethl=`cat /proc/net/dev | grep eth | cut -d':' -f 1`
xl=""
for i in $ethl
do
   if [ "${i%[0-9]}" = "eth" ]; then
       hwa=`/sbin/ip addr show $i | grep "ether" | cut -c16-32`
       xl=$xl"$i|$hwa|;"
   fi
done
echo $xl
