#!/bin/bash
# designed to be used in other scripts, so `ip` or $(ip) will return the
# current IP on dynamic IP (ppp) systems  -Erik

echo $( ifconfig ppp0 | grep addr | awk {'print $2'} | sed s/addr:// )
