#!/bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/circuits.net.ipv6 - net circuits (IPv6 specific) # # Last Update: $Id$ #---------------------------------------------------------------------------- # $1 = circuit information file # $2 = variable receiving an error message (if any) net_circuit_add_ipv6() { [ -n "$circ_net_address_ipv6" ] || return 1 circuit_write_field $circ_id circ_net_address_ipv6 "$circ_net_address_ipv6" circuit_write_field $circ_id circ_net_address_ipv6_resolved "" } # $1 = circuit identifier # $2 = circuit device # $3 = IPv6 address to add net_circuit_add_address_ipv6() { local id=$1 dev=$2 addr=$3 ip -6 addr add $addr dev $dev /etc/ppp/addrv6-up $dev $id "$addr" & } # $1 = circuit identifier # $2 = circuit device # $3 = IPv6 address to remove net_circuit_remove_address_ipv6() { local id=$1 dev=$2 addr=$3 ip -6 addr del $addr dev $dev /etc/ppp/addrv6-down $dev $id "$addr" & }