diff options
author | Bill Nottingham <notting@redhat.com> | 2010-01-06 01:30:16 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-01-06 01:33:29 -0500 |
commit | 7b18bbb446baa624d7825c4e615671a7e3104460 (patch) | |
tree | 2121a7a607e26080db69faf6fedd1c5b853e9681 /rc.d/init.d/network | |
parent | 975cb0add7a6b8d4b2277e4581094de207b8147a (diff) | |
download | initscripts-7b18bbb446baa624d7825c4e615671a7e3104460.tar initscripts-7b18bbb446baa624d7825c4e615671a7e3104460.tar.gz initscripts-7b18bbb446baa624d7825c4e615671a7e3104460.tar.bz2 initscripts-7b18bbb446baa624d7825c4e615671a7e3104460.tar.xz initscripts-7b18bbb446baa624d7825c4e615671a7e3104460.zip |
We don't echo when we *set* forwarding; there's no reason to echo when we disable it either. (#552653)
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 7f9f5748..13ad4e78 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -219,13 +219,7 @@ case "$1" in action $"Shutting down loopback interface: " ./ifdown ifcfg-lo - if [ -d /proc/sys/net/ipv4 ]; then - if [ -f /proc/sys/net/ipv4/ip_forward ]; then - if [ $(cat /proc/sys/net/ipv4/ip_forward) != 0 ]; then - action $"Disabling IPv4 packet forwarding: " sysctl -w net.ipv4.ip_forward=0 - fi - fi - fi + sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1 # IPv6 hook (post IPv4 stop) if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then |