I'm having a sheevaplug with debian (default) installed on it.
I would like to receive a mail with the ip-address of the sheevaplug, everytime it is restarted, AND everytime the ip address changes.
I have no idea how to do this...
I realize I'm asking multiple things at once, so part of the solution is also ok:
Thanks!
If dyndns (see @taspeotis' answer) is not what you want, you can:
echo "mail body" | mail -s subject recipient@foo.bar
/etc/dhcp3/dhclient-enter-hooks.d
ifconfig eth0 | grep "inet addr"