#!/bin/bash

# Make sure GPS is checked after a minute
if [ -f /tmp/gpson ];
then
    rm -f /tmp/gpson
fi

if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then 
	if [ -f /etc/ppp/resolv.orig ]; then
		cp -f /etc/ppp/resolv.orig /etc/resolv.conf
        elif [ -f /etc/ppp/resolv.prev ]; then 
                cp -f /etc/ppp/resolv.prev /etc/resolv.conf 
        else 
                rm -f /etc/resolv.conf 
        fi 
        chmod 644 /etc/resolv.conf 
fi