diff options
author | Bill Nottingham <notting@redhat.com> | 2001-07-24 20:09:07 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-07-24 20:09:07 +0000 |
commit | ee673429a7dae3de798f97ec323ea2530c22348e (patch) | |
tree | f5bb9cc241fe4cfbccfb06b4ebf1ff04c5276703 /sysconfig/network-scripts/ifdown-sit | |
parent | 4bd3e0cd786167ab7cb8bf7e33974c482fa44296 (diff) | |
download | initscripts-ee673429a7dae3de798f97ec323ea2530c22348e.tar initscripts-ee673429a7dae3de798f97ec323ea2530c22348e.tar.gz initscripts-ee673429a7dae3de798f97ec323ea2530c22348e.tar.bz2 initscripts-ee673429a7dae3de798f97ec323ea2530c22348e.tar.xz initscripts-ee673429a7dae3de798f97ec323ea2530c22348e.zip |
ipv6 update (<pekkas@netcore.fi>)
Diffstat (limited to 'sysconfig/network-scripts/ifdown-sit')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-sit | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sysconfig/network-scripts/ifdown-sit b/sysconfig/network-scripts/ifdown-sit index a2a70c16..1fa4dad9 100755 --- a/sysconfig/network-scripts/ifdown-sit +++ b/sysconfig/network-scripts/ifdown-sit @@ -8,7 +8,7 @@ # # RHL integration assistance by Pekka Savola <pekkas@netcore.fi> # -# Version 2001-05-22d +# Version 2001-07-15a # # Uses following information from /etc/sysconfig/network: # NETWORKING_IPV6=yes|no: controls IPv6 initialization (global setting) @@ -31,14 +31,10 @@ CONFIG=$1 [ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG source_config -# Test if IPv6 is up -if [ ! "${NETWORKING_IPV6}" = "yes" ]; then - # Global IPv6 switch not enabled, end now - exit 0 -fi +# Test whether IPv6 should be configured, else stop +[ "${NETWORKING_IPV6}" = "yes" ] || exit 0 if [ ! -f /etc/sysconfig/network-scripts/network-functions-ipv6 ]; then - # IPv6 setup isn't well exit 1 fi @@ -54,7 +50,6 @@ if [ "$DEVICE" = "sit0" ]; then elif [ ! -z "$IPV6TUNNELIPV4" ]; then if [ "$IPV6_TUNNELMODE" = "NBMA" ]; then if [ ! -z "$IPV6ADDR" ]; then - # Numbered tunnel ifdown_ipv6_real sit0 $IPV6ADDR fi |