#!/bin/sh
######################################################################
#
# This script is part of the PPP System designed and used by
# Preston A. Elder of Shadow Realm.  If you have any problems
# with this system please email prez@antisocial.com.
#
# This system is publically distributable via. the GNU license.
#
######################################################################
#
# Output current IP
#
. /etc/ppp-settings

if [ "$1" = "" ]; then
	NETDEV="`${basePPP}/curdef`"
else
	NETDEV="$1"
fi
if [ -z ${NETDEV} ]; then NETDEV="${baseDEV}"; fi

ifconfig $NETDEV | head -2 | tail -1 | cut -f2 -d ":" | cut -f1 -d " "
