From 5473ffcdc6afc4a3fb56fb0019e3b34854be9a3d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 11 Mar 2002 22:42:29 +0000 Subject: *BIG* IPv6 syncup. --- ppp/ipv6-down | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ppp/ipv6-down (limited to 'ppp/ipv6-down') diff --git a/ppp/ipv6-down b/ppp/ipv6-down new file mode 100644 index 00000000..bc077de8 --- /dev/null +++ b/ppp/ipv6-down @@ -0,0 +1,40 @@ +#!/bin/bash + +# Version: 2002-01-12 + +# This file should not be modified -- make local changes to +# /etc/ppp/ipv6-down.local instead + +LOGDEVICE=$6 +REALDEVICE=$1 + +export PATH=/sbin:/usr/sbin:/bin:/usr/bin + +[ -x /etc/ppp/ipv6-up.local ] && /etc/ppp/ipv6-up.local "$@" + +# Setup IP6 +if [ -f /etc/sysconfig/network ]; then + . /etc/sysconfig/network + + if [ "${NETWORKING_IPV6}" = "yes" -a -x /etc/sysconfig/network-scripts/ifdown-ipv6 ]; then + # Source IPv4 helper functions + cd /etc/sysconfig/network-scripts + . network-functions + + # Source IPv6 helper functions + . /etc/sysconfig/network-scripts/network-functions-ipv6 + + CONFIG=$1 + [ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG + source_config + + /etc/sysconfig/network-scripts/ifdown-ipv6 $REALDEVICE + + if [ "$IPV6_CONTROL_RADVD" = "yes" ]; then + # Control running radvd + ipv6_trigger_radvd down "$IPV6_RADVD_TRIGGER_ACTION" $IPV6_RADVD_PIDFILE + fi + fi +fi + +exit 0 -- cgit v1.2.1