diff options
author | Bill Nottingham <notting@redhat.com> | 2002-11-12 04:15:58 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-11-12 04:15:58 +0000 |
commit | 67428c04a5f7ad98287a4254ad581767d73d7131 (patch) | |
tree | dd62d4958e002ee903aebf6d3cd6c55c022aed4c /sysconfig/network-scripts/ifdown-ipv6 | |
parent | 0d272a1007cc37b0c271ef66e7be83de65bb11c4 (diff) | |
download | initscripts-67428c04a5f7ad98287a4254ad581767d73d7131.tar initscripts-67428c04a5f7ad98287a4254ad581767d73d7131.tar.gz initscripts-67428c04a5f7ad98287a4254ad581767d73d7131.tar.bz2 initscripts-67428c04a5f7ad98287a4254ad581767d73d7131.tar.xz initscripts-67428c04a5f7ad98287a4254ad581767d73d7131.zip |
IPv6 update <pekkas@netcore.fi>, <pb@bieringer.de>
Diffstat (limited to 'sysconfig/network-scripts/ifdown-ipv6')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ipv6 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifdown-ipv6 b/sysconfig/network-scripts/ifdown-ipv6 index f40d6b21..375ee78e 100755 --- a/sysconfig/network-scripts/ifdown-ipv6 +++ b/sysconfig/network-scripts/ifdown-ipv6 @@ -11,7 +11,7 @@ # # RHL integration assistance by Pekka Savola <pekkas@netcore.fi> # -# Version 2002-04-12 +# Version 2002-10-30 # # Note: if called as (like normally) by /etc/sysconfig/network-scripts/ifdown # exit codes aren't handled by "ifdown" @@ -56,8 +56,6 @@ REALDEVICE=`echo ${DEVICE} | sed 's/:.*//g'` [ "${NETWORKING_IPV6}" = "yes" ] || exit 0 [ -f /etc/sysconfig/network-scripts/network-functions-ipv6 ] || exit 1 - -# Source IPv6 helper functions . /etc/sysconfig/network-scripts/network-functions-ipv6 @@ -83,7 +81,7 @@ if [ -z "$IPV6TO4_RELAY" ]; then fi # Get IPv4 address from interface -if [ ! -z "$IPV6TO4_IPV4ADDR" ]; then +if [ -n "$IPV6TO4_IPV4ADDR" ]; then # Take special configured from config file (precedence 1) ipv4addr="$IPV6TO4_IPV4ADDR" else @@ -111,7 +109,7 @@ fi # Shutdown of 6to4, if configured if [ "$valid6to4config" = "yes" ]; then - if [ ! -z "$IPV6TO4_ROUTING" ]; then + if [ -n "$IPV6TO4_ROUTING" ]; then # Delete routes to local networks for devsuf in $IPV6TO4_ROUTING; do dev="`echo $devsuf | awk -F- '{ print $1 }'`" |