diff options
author | Florian La Roche <laroche@redhat.com> | 2002-06-26 10:20:20 +0000 |
---|---|---|
committer | Florian La Roche <laroche@redhat.com> | 2002-06-26 10:20:20 +0000 |
commit | 7f968d6ce159032e5f170dcedefad83894bfb95e (patch) | |
tree | 5ed6c9dca4438cf3531276f0f35d018254871a11 /ppp/ipv6-down | |
parent | 943815067d4b3a1b01a524ac45fa66415e0e45e8 (diff) | |
download | initscripts-7f968d6ce159032e5f170dcedefad83894bfb95e.tar initscripts-7f968d6ce159032e5f170dcedefad83894bfb95e.tar.gz initscripts-7f968d6ce159032e5f170dcedefad83894bfb95e.tar.bz2 initscripts-7f968d6ce159032e5f170dcedefad83894bfb95e.tar.xz initscripts-7f968d6ce159032e5f170dcedefad83894bfb95e.zip |
- useless space changes
Diffstat (limited to 'ppp/ipv6-down')
-rw-r--r-- | ppp/ipv6-down | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/ppp/ipv6-down b/ppp/ipv6-down index bc077de8..1261537b 100644 --- a/ppp/ipv6-down +++ b/ppp/ipv6-down @@ -1,40 +1,33 @@ #!/bin/bash - -# Version: 2002-01-12 - # This file should not be modified -- make local changes to # /etc/ppp/ipv6-down.local instead +PATH=/sbin:/usr/sbin:/bin:/usr/bin +export PATH + 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 +[ -x /etc/sysconfig/network-scripts/ifdown-ipv6 ] || exit 0 +[ -f /etc/sysconfig/network ] || exit 0 +. /etc/sysconfig/network +[ "${NETWORKING_IPV6}" = "yes" ] || exit 0 + +cd /etc/sysconfig/network-scripts +. network-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 exit 0 |