>
> I modifies your solution slightly, so I could use it for more interfaces
> easily.
>
> ifconfig dc0 | grep inet|awk '{print $2}'
> _______________________________________________
if your host use DHCP - you may add something to your dhclient.conf and
make some script to record it's IP.