#!/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ipv6-down990.tunnel - cleanup IPv6 after a tunnel has shut down # # Last Update: $Id$ #---------------------------------------------------------------------------- tunnel_config_dir="/var/run/ipv6.tunnels" echo 'cleaning up IPv6 after tunnel has shut down ...' for tunnelfile in "$tunnel_config_dir"/*.conf do [ -f "$tunnelfile" ] || continue . "$tunnelfile" if [ "$tunneldev" = "$real_interface" ] then [ "$type" = "ppp" ] && ipv6-configure-tunnel.sh "$tunnelfile" break fi done ipv6-restart-daemons.sh