diff options
author | Bill Nottingham <notting@redhat.com> | 2003-08-15 20:11:15 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-08-15 20:11:15 +0000 |
commit | b71ed21d56f9cc1e2aa9ced52f0a860e736a674e (patch) | |
tree | 0aa2778ad81079e8168d107d5128b9fe50fa593a /sysconfig/network-scripts/init.ipv6-global | |
parent | 901018dd876e305d05c205415175ab630729dde4 (diff) | |
download | initscripts-b71ed21d56f9cc1e2aa9ced52f0a860e736a674e.tar initscripts-b71ed21d56f9cc1e2aa9ced52f0a860e736a674e.tar.gz initscripts-b71ed21d56f9cc1e2aa9ced52f0a860e736a674e.tar.bz2 initscripts-b71ed21d56f9cc1e2aa9ced52f0a860e736a674e.tar.xz initscripts-b71ed21d56f9cc1e2aa9ced52f0a860e736a674e.zip |
IPv6 updates & tweaks <pekkas@netcore.fi>
Diffstat (limited to 'sysconfig/network-scripts/init.ipv6-global')
-rwxr-xr-x | sysconfig/network-scripts/init.ipv6-global | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/init.ipv6-global b/sysconfig/network-scripts/init.ipv6-global index 407e6d07..18163b81 100755 --- a/sysconfig/network-scripts/init.ipv6-global +++ b/sysconfig/network-scripts/init.ipv6-global @@ -70,11 +70,11 @@ case $ACTION in # Reset IPv6 sysctl switches for "all", "default" and still existing devices sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort | uniq | while read interface; do # Host/Router behaviour for the interface - ipv6_exec_sysctl -w net.ipv6.conf.$interface.forwarding=$ipv6_global_forwarding >/dev/null + ipv6_exec_sysctl -w net.ipv6.conf.$interface.forwarding=$ipv6_global_forwarding >/dev/null 2>&1 # Autoconfiguration and redirect handling for Hosts - ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_ra=$ipv6_global_auto >/dev/null - ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_redirects=$ipv6_global_auto >/dev/null + ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_ra=$ipv6_global_auto >/dev/null 2>&1 + ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_redirects=$ipv6_global_auto >/dev/null 2>&1 done ;; @@ -139,11 +139,11 @@ case $ACTION in sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort | uniq | while read interface; do # Assume Host behaviour - ipv6_exec_sysctl -w net.ipv6.conf.$interface.forwarding=0 >/dev/null + ipv6_exec_sysctl -w net.ipv6.conf.$interface.forwarding=0 >/dev/null 2>&1 # Disable autoconfiguration and redirects - ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_ra=0 >/dev/null - ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_redirects=0 >/dev/null + ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_ra=0 >/dev/null 2>&1 + ipv6_exec_sysctl -w net.ipv6.conf.$interface.accept_redirects=0 >/dev/null 2>&1 done # Cleanup still existing tunnel devices @@ -181,5 +181,4 @@ case $ACTION in echo $"Usage: $0 {start|stop|reload|restart|showsysctl}" exit 1 ;; - esac |