#!/bin/ksh
#
# ppproute
#
# Small shell script to add the "other side" ip address of the ppp
# connection, as the default gateway.
#
# John Roebuck - 16/04/99

echo "\nAdding ppp net  entry into route table\n"

#
# Find default gateway and add it
#
gateway=`netstat -rn |grep pp0 |awk '{print $1}'`
route add -net 0 $gateway

echo ""
netstat -rn