aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-01-06 01:30:16 -0500
committerBill Nottingham <notting@redhat.com>2010-01-06 01:30:16 -0500
commit24cbac7115e16fb977bfb634ee1a5c3042772bf4 (patch)
tree55340e3a686ae93b182a4fa93eb7bc10d533311e /rc.d
parentb119473cc24511ec64fe0b22ffbec34fbf73ac00 (diff)
downloadinitscripts-24cbac7115e16fb977bfb634ee1a5c3042772bf4.tar
initscripts-24cbac7115e16fb977bfb634ee1a5c3042772bf4.tar.gz
initscripts-24cbac7115e16fb977bfb634ee1a5c3042772bf4.tar.bz2
initscripts-24cbac7115e16fb977bfb634ee1a5c3042772bf4.tar.xz
initscripts-24cbac7115e16fb977bfb634ee1a5c3042772bf4.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')
-rwxr-xr-xrc.d/init.d/network8
1 files changed, 1 insertions, 7 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 777c66e8..40802432 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -258,13 +258,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