#!/bin/ash

[ -z "$ip" -o -z "$mac" ] && exit
mkdir -p /var/stats/arp/
echo -n "$ip" > "/var/stats/arp/$mac"

mkdir -p /var/stats/rarp/
echo -n "$mac" > "/var/stats/rarp/$ip"
