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