diff options
author | Bill Nottingham <notting@redhat.com> | 2003-08-15 20:16:46 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-08-15 20:16:46 +0000 |
commit | cc10d77c3813a06340e4a7b5857e8a1eeafb39d8 (patch) | |
tree | 060bc2ac015725e5c6787dd53de7cbc9423cdec6 /sysconfig/network-scripts/init.ipv6-global | |
parent | 847574070f5030b5145997baf91fb15106b35e31 (diff) | |
download | initscripts-cc10d77c3813a06340e4a7b5857e8a1eeafb39d8.tar initscripts-cc10d77c3813a06340e4a7b5857e8a1eeafb39d8.tar.gz initscripts-cc10d77c3813a06340e4a7b5857e8a1eeafb39d8.tar.bz2 initscripts-cc10d77c3813a06340e4a7b5857e8a1eeafb39d8.tar.xz initscripts-cc10d77c3813a06340e4a7b5857e8a1eeafb39d8.zip |
IPv6 updates (<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 |