#!/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ipv6-down970.nets __FLI4LVER__ # # Last Update: $Id$ #---------------------------------------------------------------------------- net_config_dir=/var/run/ipv6.nets echo 'cleaning up IPv6 networks...' for netfile in $net_config_dir/*.conf do [ -f "$netfile" ] || continue circuit= eval $(grep "^circuit=" $netfile) for circuit in $(circuit_resolve "$circuit") do if [ "$circ_id" = "$circuit" ] then ipv6-interface-setup.sh "$netfile" "$prefix" break fi done done prefixlen=$(netcalc netmaskbits $prefix) if [ $prefixlen -lt 64 ] then ip -6 route del unreachable $prefix fi ipv6-restart-daemons.sh