#!/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ip-down800.dhcpcd - called whenever a (i)ppp connection # over default circuit has been come up and dhcpcd is installed # # Creation: ??.??.2003 lanspezi # Last Update: $Id: ip-down800.dhcpcd 8079 2005-03-23 21:22:53Z lanspezi $ #---------------------------------------------------------------------------- # back up etc/resolv to etc/resolv.bak # if provider supports sending ip(s) of dns server(s) #---------------------------------------------------------------------------- if [ ! -f /etc/dnsmasq.conf -a -f /etc/resolv.conf.$interface ]; then echo "restoring previous resolv.conf (resolv.conf.$interface)" cp /etc/resolv.conf.$interface /etc/resolv.conf fi