Grab the gateway of ppp0

OLDGW=`route -n | grep "ppp0" | awk -F: '{print $1}' | grep "UH" | awk '{print $1}'`

Comments are closed.