#!/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ipv6-down800.dhcp __FLI4LVER__ # # called whenever an IPv6 PPP connection over default circuit has been shut # down and dnsmasq is not installed # # Last Update: $Id$ #---------------------------------------------------------------------------- resolv_file=/etc/resolv.conf if [ ! -f /etc/dnsmasq.conf ] then if lock_resource $(basename $resolv_file) ipv6-down800.dhcp then if [ -f $resolv_file.$interface ] then echo "restoring previous resolv.conf (resolv.conf.$interface)" mv $resolv_file.$interface $resolv_file fi unlock_resource $(basename $resolv_file) ipv6-down800.dhcp fi fi