#!/bin/sh
# by Nathan 20 December 1995
mv /etc/ethers /etc/ethers-
NOW=`date`
cat << eof > /etc/ethers
# This file was created from the arpwatch data file
# /usr/operator/arpwatch/arp.dat by arptoethers
# on $NOW
# DO NOT EDIT. 
eof
cat /usr/operator/arpwatch/arp.dat |
awk '{printf "%-18s\t%-12s\t# %-16s%s\n",$1,$4,$2,$3}' |
sort -t. +3n -4  >> /etc/ethers
exit 0
