#!/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ipv6-down900.dhcpv6 - release IPv6 prefix # # Last Update: $Id$ #---------------------------------------------------------------------------- tunnel_config_dir="/var/run/ipv6.tunnels" pidfile=/var/run/dibbler.pid if [ "$is_default_route" = "yes" ] then if [ -f $pidfile ] then pid=$(cat $pidfile) kill $pid max=20 echo "Waiting max. $max seconds for DHCPv6 client to terminate..." for i in $(seq 1 $max) do kill -0 $pid 2>/dev/null || break sleep 1 done kill -0 $pid 2>/dev/null && echo "DHCPv6 client still running, giving up" rm -f $pidfile IFACE=$real_interface dhcpv6-notify.sh delete fi fi