#!/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ip-up500.tunnel - IPv6 tunnel endpoint update __FLI4LVER__ # # Last Update: $Id$ #---------------------------------------------------------------------------- tunnels=/var/run/ipv6.dyntunnels if [ "$is_default_route" = "yes" -a -f "$tunnels" ]; then for idx in $(cat $tunnels) do conf="/var/run/ipv6.tunnels/$idx.conf" [ -f "$conf" ] && . "$conf" if [ -n "$tunneldev" ]; then echo "changing local IPv4 $type tunnel endpoint on $tunneldev to $local" ip tunnel change name "$tunneldev" local "$local" fi ipupscript="/usr/local/bin/ipup-${type}.sh" if [ -x "$ipupscript" ]; then if ! "$ipupscript" "$conf" "$local"; then echo "$ipupscript failed for $type tunnel $idx with result $?" fi fi done fi