#!/bin/sh
#remove the gateway for the wifi link otherwise routing doesn't work
route del default
#add the ppp as default route
route add default ppp0

#copy nameserver information into resolv.conf
echo "# DNS configuration automatically added by ip-up ppp script" >/etc/resolv.conf
echo nameserver $DNS1 >> /etc/resolv.conf
echo nameserver $DNS2 >> /etc/resolv.conf

